mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
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:
@ -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 */);
|
||||
|
Reference in New Issue
Block a user