aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-12-03 10:44:02 -0800
committerChris Robinson <[email protected]>2012-12-03 10:44:02 -0800
commit4808313e7032c1dec160b7ca16ab7f9bdbb549d4 (patch)
tree76864b941769bafad374f2e10af9355399e6a412 /Alc
parent1fb9311d82ff7e591aabb209eb5aaba108efc20e (diff)
Use the correct multiplier for int32 output with CoreAudio
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/coreaudio.c4
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;