diff --git a/Source/Core/AudioCommon/Src/OpenALStream.cpp b/Source/Core/AudioCommon/Src/OpenALStream.cpp index b0499f4ae0..adcf30d90a 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.cpp +++ b/Source/Core/AudioCommon/Src/OpenALStream.cpp @@ -33,7 +33,7 @@ bool OpenALStream::Start() pDeviceList = new ALDeviceList(); if ((pDeviceList) && (pDeviceList->GetNumDevices())) { - pDevice = alcOpenDevice(pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice())); + pDevice = alcOpenDevice((ALCubyte*)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice())); if (pDevice) { pContext = alcCreateContext(pDevice, NULL); @@ -150,7 +150,7 @@ void OpenALStream::SoundLoop() // Clean up buffers and sources alDeleteSources(1, &uiSource); - alDeleteBuffers(AUDIO_NUMBUFFERS, (const ALuint *)uiBuffers); + alDeleteBuffers(AUDIO_NUMBUFFERS, (ALuint *)uiBuffers); } diff --git a/Source/Core/AudioCommon/Src/OpenALStream.h b/Source/Core/AudioCommon/Src/OpenALStream.h index f5e6659124..4624807006 100644 --- a/Source/Core/AudioCommon/Src/OpenALStream.h +++ b/Source/Core/AudioCommon/Src/OpenALStream.h @@ -27,6 +27,9 @@ #ifdef _WIN32 #include "../../../../Externals/OpenAL/include/al.h" #include "../../../../Externals/OpenAL/include/alc.h" +#elif defined(__APPLE__) +#include "openal/al.h" +#include "openal/alc.h" #else #include "AL/al.h" #include "AL/alc.h"