mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-04 20:06:41 +01:00
osx build fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2912 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f18718922e
commit
c662713ba0
@ -33,7 +33,7 @@ bool OpenALStream::Start()
|
|||||||
pDeviceList = new ALDeviceList();
|
pDeviceList = new ALDeviceList();
|
||||||
if ((pDeviceList) && (pDeviceList->GetNumDevices()))
|
if ((pDeviceList) && (pDeviceList->GetNumDevices()))
|
||||||
{
|
{
|
||||||
pDevice = alcOpenDevice(pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()));
|
pDevice = alcOpenDevice((ALCubyte*)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()));
|
||||||
if (pDevice)
|
if (pDevice)
|
||||||
{
|
{
|
||||||
pContext = alcCreateContext(pDevice, NULL);
|
pContext = alcCreateContext(pDevice, NULL);
|
||||||
@ -150,7 +150,7 @@ void OpenALStream::SoundLoop()
|
|||||||
|
|
||||||
// Clean up buffers and sources
|
// Clean up buffers and sources
|
||||||
alDeleteSources(1, &uiSource);
|
alDeleteSources(1, &uiSource);
|
||||||
alDeleteBuffers(AUDIO_NUMBUFFERS, (const ALuint *)uiBuffers);
|
alDeleteBuffers(AUDIO_NUMBUFFERS, (ALuint *)uiBuffers);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,6 +27,9 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include "../../../../Externals/OpenAL/include/al.h"
|
#include "../../../../Externals/OpenAL/include/al.h"
|
||||||
#include "../../../../Externals/OpenAL/include/alc.h"
|
#include "../../../../Externals/OpenAL/include/alc.h"
|
||||||
|
#elif defined(__APPLE__)
|
||||||
|
#include "openal/al.h"
|
||||||
|
#include "openal/alc.h"
|
||||||
#else
|
#else
|
||||||
#include "AL/al.h"
|
#include "AL/al.h"
|
||||||
#include "AL/alc.h"
|
#include "AL/alc.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user