Now that Core Audio works, reduce the number of build permutations a bit

by not linking in other Unix audio modules.
 
Use kAudioUnitSubType_DefaultOutput instead of kAudioUnitSubType_HALOutput
so that a runtime switch to another audio device is automatically handled.
 
Use ERROR_LOG for audio errors.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5562 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-06-01 20:45:30 +00:00
parent f7494e6b2b
commit 9d7b569ccb
7 changed files with 24 additions and 50 deletions

View File

@ -29,11 +29,7 @@ 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 */);