From 0f55410e3d0f7997999ac8147677e572ef47e94e Mon Sep 17 00:00:00 2001 From: Joerg Mueller Date: Sat, 16 Jan 2010 22:12:19 +0000 Subject: Short term workaround for OpenAL + pulse bugs on ubuntu. Not sure if it works, people have to test and report please, I don't have ubuntu. Longer term we hope for an update of the ubuntu packages to fix the problem. --- intern/audaspace/OpenAL/AUD_OpenALDevice.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'intern/audaspace') diff --git a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp index 0d90b014943..087c7849a2c 100644 --- a/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp +++ b/intern/audaspace/OpenAL/AUD_OpenALDevice.cpp @@ -270,7 +270,23 @@ AUD_OpenALDevice::AUD_OpenALDevice(AUD_DeviceSpecs specs, int buffersize) specs.channels = AUD_CHANNELS_STEREO; specs.format = AUD_FORMAT_S16; - m_device = alcOpenDevice(NULL); +#if 0 + if(alcIsExtensionPresent(NULL, "ALC_ENUMERATION_EXT") == AL_TRUE) + { + ALCchar* devices = const_cast(alcGetString(NULL, ALC_DEVICE_SPECIFIER)); + printf("OpenAL devices (standard is: %s):\n", alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER)); + + while(*devices) + { + printf("%s\n", devices); + devices += strlen(devices) + 1; + } + } +#endif + + m_device = alcOpenDevice("ALSA Software"); + if(m_device == NULL) + m_device = alcOpenDevice(NULL); if(!m_device) AUD_THROW(AUD_ERROR_OPENAL); -- cgit v1.2.3