mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-11 08:30:55 +00:00
Adds support for stereo output.
This commit is contained in:
parent
f99d672237
commit
43740a4b2f
@ -98,10 +98,11 @@ static void audioOutputCallback(
|
||||
outputDescription.mFormatID = kAudioFormatLinearPCM;
|
||||
outputDescription.mFormatFlags = kLinearPCMFormatFlagIsSignedInteger;
|
||||
|
||||
outputDescription.mBytesPerPacket = 2;
|
||||
|
||||
outputDescription.mChannelsPerFrame = isStereo ? 2 : 1;
|
||||
outputDescription.mFramesPerPacket = 1;
|
||||
outputDescription.mBytesPerFrame = 2;
|
||||
outputDescription.mChannelsPerFrame = 1;
|
||||
outputDescription.mBytesPerFrame = 2 * outputDescription.mChannelsPerFrame;
|
||||
outputDescription.mBytesPerPacket = outputDescription.mBytesPerFrame * outputDescription.mFramesPerPacket;
|
||||
outputDescription.mBitsPerChannel = 16;
|
||||
|
||||
outputDescription.mReserved = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user