Jump to content


How get name of device in OpenAL?


2 replies to this topic

#1 lestat

    New Member

  • Members
  • Pip
  • 6 posts

Posted 25 March 2005 - 06:07 AM

I can not get Device name. if i set NULL (for example alcOpenDevice(NULL);)
This function return NULL. What i must doing?

#2 Ed Mack

    Senior Member

  • Members
  • PipPipPipPip
  • 1239 posts

Posted 25 March 2005 - 02:05 PM

Do you have DX or another audio subsystem installed? Have a look over this:

http://opensource.creative.com/pipermail/o...ril/002043.html

#3 Drakan21

    New Member

  • Members
  • Pip
  • 1 posts

Posted 16 May 2005 - 07: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users