diff options
author | Chris Robinson <[email protected]> | 2012-12-03 10:44:02 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-12-03 10:44:02 -0800 |
commit | 4808313e7032c1dec160b7ca16ab7f9bdbb549d4 (patch) | |
tree | 76864b941769bafad374f2e10af9355399e6a412 | |
parent | 1fb9311d82ff7e591aabb209eb5aaba108efc20e (diff) |
Use the correct multiplier for int32 output with CoreAudio
-rw-r--r-- | Alc/backends/coreaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/coreaudio.c b/Alc/backends/coreaudio.c index 69a7404a..92d862eb 100644 --- a/Alc/backends/coreaudio.c +++ b/Alc/backends/coreaudio.c @@ -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; |