summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-09-21 20:28:17 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-09-21 20:28:17 +0000
commit8c5285eddffd8c554205d24baaf522be4f2fe4b2 (patch)
tree38e1dd6feb40a4a8f7e1ba7cc3a7b01fd0c88cdb /Source/Core/AudioCommon
parent72f443c5ce07e2af23fd173465c79b3142bd2bc3 (diff)
fix some path issues on OSX, also libao for osx only supports 44.1kHz...awesome...who calls writing the CoreAudio backend so we can kill libao? :D
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4311 8ced0084-cf51-0410-be5f-012b33b47a6e
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 */);