Use the correct multiplier for int32 output with CoreAudio

This commit is contained in:
Chris Robinson
2012-12-03 10:44:02 -08:00
parent 1fb9311d82
commit 4808313e70
+2 -2
View File
@@ -300,8 +300,8 @@ static ALCboolean ca_reset_playback(ALCdevice *device)
/* fall-through */
case DevFmtInt:
streamFormat.mBitsPerChannel = 32;
streamFormat.mBytesPerPacket = 2 * streamFormat.mChannelsPerFrame;
streamFormat.mBytesPerFrame = 2 * streamFormat.mChannelsPerFrame;
streamFormat.mBytesPerPacket = 4 * streamFormat.mChannelsPerFrame;
streamFormat.mBytesPerFrame = 4 * streamFormat.mChannelsPerFrame;
break;
}
streamFormat.mFormatID = kAudioFormatLinearPCM;