mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00: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:
parent
f7494e6b2b
commit
9d7b569ccb
7 changed files with 24 additions and 50 deletions
|
@ -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 */);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue