[Chunk List Converter] Fix repeated initialization
Oops, this compare blunder resulted in DSD decimation breaking every 1024 samples or so, owing to block sizes, and caused ticking sounds as a result. It would also cause HDCD decoding to break completely. Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
7e03f423c3
commit
0b8a850086
|
@ -513,7 +513,7 @@ static void convert_be_to_le(uint8_t *buffer, size_t bitsPerSample, size_t bytes
|
|||
AudioStreamBasicDescription chunkFormat = [inChunk format];
|
||||
uint32_t chunkConfig = [inChunk channelConfig];
|
||||
BOOL chunkLossless = [inChunk lossless];
|
||||
if(!formatRead || memcmp(&chunkConfig, &inputFormat, sizeof(chunkConfig)) != 0 ||
|
||||
if(!formatRead || memcmp(&chunkFormat, &inputFormat, sizeof(chunkFormat)) != 0 ||
|
||||
chunkConfig != inputChannelConfig || chunkLossless != inputLossless) {
|
||||
formatRead = YES;
|
||||
inputFormat = chunkFormat;
|
||||
|
|
Loading…
Reference in New Issue