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:
parent
aafe817a1f
commit
d3f99f8987
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue