Bug Fix: Simplification of chunk duration check

This only needs to check that the chunk is empty, not its exact
duration.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-03-07 17:27:54 -08:00
parent aafe817a1f
commit d3f99f8987

View file

@ -648,7 +648,7 @@ static void convert_be_to_le(uint8_t *buffer, size_t bitsPerSample, size_t bytes
inConverter = YES;
AudioStreamBasicDescription chunkFormat = [inChunk format];
if(![inChunk duration] ||
if(![inChunk frameCount] ||
(chunkFormat.mFormatFlags == kAudioFormatFlagsNativeFloatPacked &&
chunkFormat.mBitsPerChannel == 32)) {
inConverter = NO;