[Openal] capturing audio from line in

Daniel Chaves Toscano Dantas danflu at uninet.com.br
Fri Oct 24 20:02:14 PDT 2008


Hello,

I'm trying to capture audio from "line in" in linux (Ubuntu
8.04) using the openal API.

I've written a small test application for audio capture that
works for microphone input and dont work for "line in"
input.

When i ask openal to list the available capture devices i
get the following list:

1 - ALSA Capture on default
2 - ALSA Capture on HDA Intel
3 - OSS Capture

I've tried all them for "line in" but no one produces sound
output.

When i attach a mic to my computer i get sound output
perfectly well when using device "ALSA Capture on default". 

The following two devices do not work for microphone (ALSA
Capture on HDA Intel produces an error message  "AL lib:
alsa.c:562: set channels failed: Invalid argument" and OSS
Capture do not produces any audio samples).

I tested "line in" using the Operating System mixer and it's
working well so the problem appears to be located something
in openal configuration itself...
Just to inform ... I'm using openal-soft implementation
(http://kcat.strangesoft.net/openal.html </cgi-bin/webmail.cgi?cmd=url&xdata=%7E2-dc4330f985b6b65d441f9134f87e96ac074d9ef0db9dd6d500&url=http%213A%212F%212Fkcat.strangesoft.net%212Fopenal.html>)

I dont have any clue about what is going on... I've checked
the docs and there is no reference about diferences on
capturing from microphone or from line in...

Please Help !!
Thank you very much
Daniel



More information about the Openal mailing list