[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>
This commit is contained in:
parent
716170dcad
commit
41e87e3830
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ static void convert_be_to_le(uint8_t *buffer, size_t bitsPerSample, size_t bytes
|
||||||
AudioStreamBasicDescription chunkFormat = [inChunk format];
|
AudioStreamBasicDescription chunkFormat = [inChunk format];
|
||||||
uint32_t chunkConfig = [inChunk channelConfig];
|
uint32_t chunkConfig = [inChunk channelConfig];
|
||||||
BOOL chunkLossless = [inChunk lossless];
|
BOOL chunkLossless = [inChunk lossless];
|
||||||
if(!formatRead || memcmp(&chunkConfig, &inputFormat, sizeof(chunkConfig)) != 0 ||
|
if(!formatRead || memcmp(&chunkFormat, &inputFormat, sizeof(chunkFormat)) != 0 ||
|
||||||
chunkConfig != inputChannelConfig || chunkLossless != inputLossless) {
|
chunkConfig != inputChannelConfig || chunkLossless != inputLossless) {
|
||||||
formatRead = YES;
|
formatRead = YES;
|
||||||
inputFormat = chunkFormat;
|
inputFormat = chunkFormat;
|
||||||
|
|
Loading…
Reference in a new issue