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
This commit is contained in:
Shawn Hoffman
2009-09-21 20:28:17 +00:00
parent 72f443c5ce
commit 8c5285eddf
3 changed files with 9 additions and 2 deletions

View File

@ -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 */);