[Openal] Unable to open the device capture ???
Jason Daly
jdaly at ist.ucf.edu
Mon Jun 23 08:45:52 PDT 2008
Peter Mulholland wrote:
> Hello wassim_belhadj,
>
> Saturday, June 21, 2008, 2:26:48 PM, you wrote:
>
>
>
>> I noticed that the sound card that I use does not make to record sound
>> when the device(sound card) is open.
>> Indeed, alcCaptureOpenDevice me always returns NULL when the device is
>> opened.
>> To run the capture I always have to close the device before starting the
>> capture and then reopen again to play the sound like this:
>>
> <snip>
>
> This suggests that OpenAL isn't properly enumerating multiple input devices.
>
> >From what I can tell, there is also no way to enumerate available devices - a serious oversight in OpenAL!!
>
You can enumerate devices on any OpenAL 1.1 implementation using this:
ALCchar *deviceList;
deviceList = alcGetString(NULL, ALC_DEVICE_SPECIFIER);
On Windows, this will return a NULL-delimited (double-NULL terminated)
list of all native OpenAL devices, as well as "Generic Software" and
"Generic Hardware", which map to the preferred devices as configured in
the Control Panel. Windows Vista will skip Generic Hardware
(DirectSound3D is no longer supported on Vista.
If you're using the latest Creative SDK and runtime (or OpenAL-Soft, I
believe), you can enumerate all devices, which gives you choices like
"Generic Software on <device>". You can do this with the following query:
deviceList = alcGetString(NULL, ALC_ALL_DEVICES_SPECIFIER);
You should check to see if the implementation supports the
ALC_ENUMERATE_ALL_EXT extension before making this query.
--"J"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20080623/49c17fe1/attachment.html
More information about the Openal
mailing list