try to keep API boundaries passing frames, instead of bytes
This commit is contained in:
@@ -40,7 +40,8 @@ OSStatus AudioConverter::FormatConverterInputProc(UInt32& ioNumberDataPackets,
|
||||
}
|
||||
buf.mData = mBuffer;
|
||||
|
||||
mDriver->FillConverter( buf.mData, buf.mDataByteSize );
|
||||
const int frames = buf.mDataByteSize / kBytesPerPacket;
|
||||
mDriver->FillConverter( buf.mData, frames );
|
||||
return noErr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user