PDA

View Full Version : How get name of device in OpenAL?


lestat
03-24-2005, 11:07 PM
I can not get Device name. if i set NULL (for example alcOpenDevice(NULL);)
This function return NULL. What i must doing?

Ed Mack
03-25-2005, 07:05 AM
Do you have DX or another audio subsystem installed? Have a look over this:

http://opensource.creative.com/pipermail/o...ril/002043.html (http://opensource.creative.com/pipermail/openal/2004-April/002043.html)

Drakan21
05-16-2005, 01:11 PM
When trying to determine the device to use when initializing OpenAL you can use the following:


char* DefaultDevice = (char*)alcGetString(NULL, ALC_DEFAULT_DEVICE_SPECIFIER);

alcOpenDevice((ALubyte*)DefaultDevice);
...


I hope that is of some help.
You can also enumerate the devices available and then store then in an array so that you can use some of the other "non-default" devices.