[Openal] Could not find capture device
Garin Hiebert
garinh at cheesetoast.net
Sat May 20 17:05:43 PDT 2006
> 2. The following line of code returns FLASE.
> isAlcExtensionPresent(NULL, "ALC_EXT_CAPTURE");
For either the "Generic Hardware" or "Generic Software" devices, the
following call should always return ALC_TRUE:
alcIsExtensionPresent(Device, "ALC_EXT_CAPTURE");
If you are using a1.1-compliant version of the wrapper (it seems like
you are), then getting ALC_FALSE back should be impossible (make sure
you're calling "alcIsExtensionPresent" instead of "alIsExtensionPresent"
-- that's an easy mistake to make, but a hard one to see). The file
"wrap_oal.dll" in your system directory should be at version 2.0.8 if
you have the latest version installed.
> 3. The following line of code also returns False
> alcCaptureOpenDevice("Generic Hardware", FREQ, FMT, BUFSIZE);
>
> where the FREQ is 44100, FMT is AL_FORMAT_MONO16.
That is correct -- you want to also enumerate the available capture
device names (ask for ALC_CAPTURE_DEVICE_SPECIFIER or
ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER) and use one of them ("MMSYSTEM"
will be what comes back, but your code might as well ask rather than
assume so...). When you open "MMSYSTEM" it should work...
Garin
More information about the Openal
mailing list