[Openal] Capture problems under Windows
Daniel PEACOCK
dpeacock at creativelabs.com
Wed Jul 11 10:29:11 PDT 2007
Hi,
> I have problems with audio capture. The capture device list does not show
> generic hardware and software devices (according to what I have read in
the
> docs and in forum messages these should be present). The only device
shown
> is the C-Media Wave device. Generic devices ("Generic Hardware" or
"Generic
> Software") cannot be opened (an error is reported).
That is expected behaviour. The "Generic Hardware" and "Generic Software"
are playback devices only. For capture devices, OpenAL enumerates all the
audio input devices on the system.
> When I open the C-Media
> device and try to capture sound, there are no samples in the capture
buffer,
> the call
>
> alcGetIntegerv(device, ALC_CAPTURE_SAMPLES, 1, &num)
>
> returns zero in 'num'. At every step in my test program I check if any
error
> occurs, but I never get an error message, so the code seems to be
working. I
> have included the relevant parts of my test program (the code is below,
> after the message body).
Are you calling alcCaptureStart() ? You didn't include all the code so
perhaps you do this somewhere else ... but just in case!
Could you try modifying the Capture example code that came with the SDK to
use the same settings as your code (e.g buffer frequency, sample size, etc
...) and see if that works?
Dan
More information about the Openal
mailing list