diff options
| author | Michael Maltese <mchtly@gmail.com> | 2017-06-25 23:56:11 -0700 |
|---|---|---|
| committer | Michael Maltese <mchtly@gmail.com> | 2017-06-29 16:53:20 -0700 |
| commit | 21fa010bb66f56ed9b83e840d25c10c313b99e05 (patch) | |
| tree | c9bc4efc7ca431e802b117d728a69deb80893a91 /Source/Core/AudioCommon/AudioCommon.cpp | |
| parent | 898bbffaa7cd124801f4682270e1b8d38840dc24 (diff) | |
Remove CoreAudio audio backend
Cubeb handles everything the CoreAudio backend can, plus supports DPL2.
Diffstat (limited to 'Source/Core/AudioCommon/AudioCommon.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/AudioCommon.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/Core/AudioCommon/AudioCommon.cpp b/Source/Core/AudioCommon/AudioCommon.cpp index 606854159c..18aa75d1ae 100644 --- a/Source/Core/AudioCommon/AudioCommon.cpp +++ b/Source/Core/AudioCommon/AudioCommon.cpp @@ -4,7 +4,6 @@ #include "AudioCommon/AudioCommon.h" #include "AudioCommon/AlsaSoundStream.h" -#include "AudioCommon/CoreAudioSoundStream.h" #include "AudioCommon/CubebStream.h" #include "AudioCommon/Mixer.h" #include "AudioCommon/NullSoundStream.h" @@ -46,8 +45,6 @@ void InitSoundStream() } else if (backend == BACKEND_ALSA && AlsaSound::isValid()) g_sound_stream = std::make_unique<AlsaSound>(); - else if (backend == BACKEND_COREAUDIO && CoreAudioSound::isValid()) - g_sound_stream = std::make_unique<CoreAudioSound>(); else if (backend == BACKEND_PULSEAUDIO && PulseAudio::isValid()) g_sound_stream = std::make_unique<PulseAudio>(); else if (backend == BACKEND_OPENSLES && OpenSLESStream::isValid()) @@ -101,7 +98,7 @@ std::string GetDefaultSoundBackend() if (AlsaSound::isValid()) backend = BACKEND_ALSA; #elif defined __APPLE__ - backend = BACKEND_COREAUDIO; + backend = BACKEND_CUBEB; #elif defined _WIN32 backend = BACKEND_XAUDIO2; #endif @@ -118,8 +115,6 @@ std::vector<std::string> GetSoundBackends() backends.push_back(BACKEND_XAUDIO2); if (AlsaSound::isValid()) backends.push_back(BACKEND_ALSA); - if (CoreAudioSound::isValid()) - backends.push_back(BACKEND_COREAUDIO); if (PulseAudio::isValid()) backends.push_back(BACKEND_PULSEAUDIO); if (OpenALStream::isValid()) @@ -152,8 +147,7 @@ bool SupportsVolumeChanges(const std::string& backend) // FIXME: this one should ask the backend whether it supports it. // but getting the backend from string etc. is probably // too much just to enable/disable a stupid slider... - return backend == BACKEND_COREAUDIO || backend == BACKEND_CUBEB || backend == BACKEND_OPENAL || - backend == BACKEND_XAUDIO2; + return backend == BACKEND_CUBEB || backend == BACKEND_OPENAL || backend == BACKEND_XAUDIO2; } void UpdateSoundStream() |
