Use the proper type for printing the OpenAL default device name.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6540 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
908273d5f4
commit
ef093a4d35
|
@ -35,25 +35,29 @@ bool OpenALStream::Start()
|
||||||
pDeviceList = new ALDeviceList();
|
pDeviceList = new ALDeviceList();
|
||||||
if ((pDeviceList) && (pDeviceList->GetNumDevices()))
|
if ((pDeviceList) && (pDeviceList->GetNumDevices()))
|
||||||
{
|
{
|
||||||
pDevice = alcOpenDevice((const ALCchar *)pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()));
|
char *defDevName = pDeviceList-> \
|
||||||
|
GetDeviceName(pDeviceList->GetDefaultDevice());
|
||||||
|
pDevice = alcOpenDevice(defDevName);
|
||||||
if (pDevice)
|
if (pDevice)
|
||||||
{
|
{
|
||||||
pContext = alcCreateContext(pDevice, NULL);
|
pContext = alcCreateContext(pDevice, NULL);
|
||||||
if (pContext)
|
if (pContext)
|
||||||
{
|
{
|
||||||
alcMakeContextCurrent(pContext);
|
alcMakeContextCurrent(pContext);
|
||||||
thread = new Common::Thread(OpenALStream::ThreadFunc, (void *)this);
|
thread = new Common::Thread(
|
||||||
|
OpenALStream::ThreadFunc, (void *)this);
|
||||||
bReturn = true;
|
bReturn = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
alcCloseDevice(pDevice);
|
alcCloseDevice(pDevice);
|
||||||
PanicAlert("OpenAL: can't create context for device %s", pDevice);
|
PanicAlert("OpenAL: can't create context "
|
||||||
|
"for device %s", defDevName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PanicAlert("OpenAL: can't open device %s", pDevice);
|
PanicAlert("OpenAL: can't open device %s", defDevName);
|
||||||
}
|
}
|
||||||
delete pDeviceList;
|
delete pDeviceList;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue