From 43dfff651a401b461f3097ee7fd38b200952e06c Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Tue, 1 Jun 2010 21:10:49 +0000 Subject: [PATCH] Hopefully fix building on Linux. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5566 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/AudioCommon.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/AudioCommon/Src/AudioCommon.cpp b/Source/Core/AudioCommon/Src/AudioCommon.cpp index 1ea0d44a9a..1157c259b9 100644 --- a/Source/Core/AudioCommon/Src/AudioCommon.cpp +++ b/Source/Core/AudioCommon/Src/AudioCommon.cpp @@ -43,8 +43,10 @@ namespace AudioCommon soundStream = new AOSound(mixer); else if (backend == BACKEND_ALSA && AlsaSound::isValid()) soundStream = new AlsaSound(mixer); +#ifdef __APPLE__ else if (backend == BACKEND_COREAUDIO && CoreAudioSound::isValid()) soundStream = new CoreAudioSound(mixer); +#endif else if (backend == BACKEND_PULSEAUDIO && PulseAudio::isValid()) soundStream = new PulseAudio(mixer); @@ -97,8 +99,10 @@ namespace AudioCommon backends.push_back(BACKEND_AOSOUND); if (AlsaSound::isValid()) backends.push_back(BACKEND_ALSA); +#ifdef __APPLE_ if (CoreAudioSound::isValid()) backends.push_back(BACKEND_COREAUDIO); +#endif if (PulseAudio::isValid()) backends.push_back(BACKEND_PULSEAUDIO);