PcmConvert: fix src_format corruption when converting from DSD
Method PcmConvert::Convert() modifies the src_format variable. This
used to be a parameter, however commit d2679f59c
made it an attribute
instead. The modification to src_format persisted, and the next call
would return garbage.
This commit is contained in:
@@ -51,6 +51,13 @@ class PcmConvert {
|
||||
|
||||
AudioFormat src_format, dest_format;
|
||||
|
||||
/**
|
||||
* Do we get DSD source data? Then this flag is true and
|
||||
* src_format.format is set to SampleFormat::FLOAT, because
|
||||
* the #PcmDsd class will convert it to floating point.
|
||||
*/
|
||||
bool is_dsd;
|
||||
|
||||
public:
|
||||
PcmConvert();
|
||||
~PcmConvert();
|
||||
|
Reference in New Issue
Block a user