From c3926a35ae2f66172c256a230c7827b8e2b755ad Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Fri, 24 Apr 2009 05:42:57 +0000 Subject: [PATCH] Only have this in OSX since that is only where it compiles apparently? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3061 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/OpenALStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index adcf30d90a..7784472257 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -33,7 +33,11 @@ bool OpenALStream::Start() pDeviceList = new ALDeviceList(); if ((pDeviceList) && (pDeviceList->GetNumDevices())) { +#ifdef __APPLE__ pDevice = alcOpenDevice((ALCubyte*)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice())); +#else + pDevice = alcOpenDevice((const ALCchar *)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice())); +#endif if (pDevice) { pContext = alcCreateContext(pDevice, NULL);