summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/AudioCommon')
-rw-r--r--Source/Core/AudioCommon/Src/AOSoundStream.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/Src/AOSoundStream.cpp b/Source/Core/AudioCommon/Src/AOSoundStream.cpp
index 568fe56e0a..646d011022 100644
--- a/Source/Core/AudioCommon/Src/AOSoundStream.cpp
+++ b/Source/Core/AudioCommon/Src/AOSoundStream.cpp
@@ -29,7 +29,11 @@ void AOSound::SoundLoop()
default_driver = ao_default_driver_id();
format.bits = 16;
format.channels = 2;
+#ifdef __APPLE__
+ format.rate = 44100; // libao for osx only supports 44.1kHz...
+#else
format.rate = m_mixer->GetSampleRate();
+#endif
format.byte_format = AO_FMT_LITTLE;
device = ao_open_live(default_driver, &format, NULL /* no options */);