summaryrefslogtreecommitdiff
path: root/src/sound/cocoa_s.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-07-10 18:22:04 +0000
committerpeter1138 <peter1138@openttd.org>2009-07-10 18:22:04 +0000
commitc654dedb28b9f3f15eda261545daa333534a7177 (patch)
tree36b846358b2cab6dbbfa20604dbe3098084d24f6 /src/sound/cocoa_s.cpp
parent1c1b6da4a3f1a457b5e202f33fc51860a90e4573 (diff)
downloadopenttd-c654dedb28b9f3f15eda261545daa333534a7177.tar.xz
(svn r16784) -Fix: Audio playback rate was fixed at 11025Hz regardless of the rate specified to the audio driver, resulting in incorrect playback speed. It is still preferable to use 11025Hz output rate if possible as OpenTTD's sample rate converter is very low quality.
Diffstat (limited to 'src/sound/cocoa_s.cpp')
-rw-r--r--src/sound/cocoa_s.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound/cocoa_s.cpp b/src/sound/cocoa_s.cpp
index 7e315fb75..851136efa 100644
--- a/src/sound/cocoa_s.cpp
+++ b/src/sound/cocoa_s.cpp
@@ -69,6 +69,7 @@ const char *SoundDriver_Cocoa::Start(const char * const *parm)
requestedDesc.mBytesPerFrame = requestedDesc.mBitsPerChannel * requestedDesc.mChannelsPerFrame / 8;
requestedDesc.mBytesPerPacket = requestedDesc.mBytesPerFrame * requestedDesc.mFramesPerPacket;
+ MxInitialize(requestedDesc.mSampleRate);
/* Locate the default output audio unit */
desc.componentType = kAudioUnitType_Output;