mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-15 16:59:18 +01:00
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
This commit is contained in:
parent
6c29abe2ef
commit
c3926a35ae
@ -33,7 +33,11 @@ bool OpenALStream::Start()
|
|||||||
pDeviceList = new ALDeviceList();
|
pDeviceList = new ALDeviceList();
|
||||||
if ((pDeviceList) && (pDeviceList->GetNumDevices()))
|
if ((pDeviceList) && (pDeviceList->GetNumDevices()))
|
||||||
{
|
{
|
||||||
|
#ifdef __APPLE__
|
||||||
pDevice = alcOpenDevice((ALCubyte*)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()));
|
pDevice = alcOpenDevice((ALCubyte*)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()));
|
||||||
|
#else
|
||||||
|
pDevice = alcOpenDevice((const ALCchar *)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()));
|
||||||
|
#endif
|
||||||
if (pDevice)
|
if (pDevice)
|
||||||
{
|
{
|
||||||
pContext = alcCreateContext(pDevice, NULL);
|
pContext = alcCreateContext(pDevice, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user