[Openal] Re: Openal Digest, Vol 31, Issue 7

Daniel Chaves Toscano Dantas danflu at uninet.com.br
Sun Oct 26 15:31:23 PDT 2008


Hi,

Yes you were right. I was linking against an old library
forgotten at /usr/lib, i did not installed the new library!
But it still not working for "line in".

When I list the devices now I get the folowing list:

ALSA Capture on default
ALSA Capture on HDA Intel [ALC662 Analog]
OSS Capture

Microfone input works well for all them but line in is not
working yet for none of the devices listed.

arecord -l produces the following output:

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC662 Analog [ALC662
Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

openalrc looks like:

(define devices '(alsa))
(define alsa-out-device "default")

And i added the line you suggested, so now it is:

(define devices '(alsa))
(define alsa-out-device "default")
[alsa] 
default = plughw:0,0

And also tried deleting the two first lines and putting only
the line you said:

[alsa] 
default = plughw:0,0

But unfortunately it did not produced sound output for line in... 
The OS mixer plays the line in input so I can only conclude that something is blocking openal from capturing audio from this input.
Microphone works perfectly well...


Daniel




openal-request at opensource.creative.com escreveu:
> Send Openal mailing list submissions to
> 	openal at opensource.creative.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://opensource.creative.com/mailman/listinfo/openal
> or, via email, send a message with subject or body 'help' to
> 	openal-request at opensource.creative.com
>
> You can reach the person managing the list at
> 	openal-owner at opensource.creative.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Openal digest..."
>
>
> Today's Topics:
>
>    1. Re: Re: capturing audio from line in
>       (Daniel Chaves Toscano Dantas)
>    2. Re: Re: Re: capturing audio from line in (Chris Robinson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 25 Oct 2008 17:31:06 -0200
> From: Daniel Chaves Toscano Dantas <danflu at uninet.com.br>
> Subject: [Openal] Re: Re: capturing audio from line in
> To: openal at opensource.creative.com
> Message-ID: <490373FA.4080904 at uninet.com.br>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> Thanks for your reply.
>
> I'm using OpenAL Soft 1.5.304.
> It's available at http://kcat.strangesoft.net/openal.html as a tarball distro.
> Is this version stable for capturing purposes ?
>
> Should I try the git one ?
> Any idea ?
>
> Thank you!!
> Daniel
>
>
>
> openal-request at opensource.creative.com escreveu:
>   
>> Send Openal mailing list submissions to
>> 	openal at opensource.creative.com
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://opensource.creative.com/mailman/listinfo/openal
>> or, via email, send a message with subject or body 'help' to
>> 	openal-request at opensource.creative.com
>>
>> You can reach the person managing the list at
>> 	openal-owner at opensource.creative.com
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Openal digest..."
>>
>>
>> Today's Topics:
>>
>>    1. capturing audio from line in (Daniel Chaves Toscano Dantas)
>>    2. Re: capturing audio from line in (Chris Robinson)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Sat, 25 Oct 2008 01:02:14 -0200
>> From: Daniel Chaves Toscano Dantas <danflu at uninet.com.br>
>> Subject: [Openal] capturing audio from line in
>> To: openal at opensource.creative.com
>> Message-ID: <49028C36.2040808 at uninet.com.br>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> 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
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Fri, 24 Oct 2008 20:34:45 -0700
>> From: Chris Robinson <chris.kcat at gmail.com>
>> Subject: Re: [Openal] capturing audio from line in
>> To: openal at opensource.creative.com
>> Message-ID: <200810242034.45342.chris.kcat at gmail.com>
>> Content-Type: text/plain;  charset="iso-8859-1"
>>
>> On Friday 24 October 2008 08:02:14 pm Daniel Chaves Toscano Dantas wrote:
>>   
>>     
>>> 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
>>>     
>>>       
>> Hi Daniel.
>>
>> What version of OpenAL Soft do you have? That looks like it could be an older 
>> version since newer ones should print all available ALSA devices, not just 
>> the ALSA cards (eg. "HDA NVidia [ALC883 Analog]").
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> Openal mailing list
>> Openal at opensource.creative.com
>> http://opensource.creative.com/mailman/listinfo/openal
>>
>>
>> End of Openal Digest, Vol 31, Issue 6
>> *************************************
>>
>>
>>   
>>     
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 25 Oct 2008 13:14:08 -0700
> From: Chris Robinson <chris.kcat at gmail.com>
> Subject: Re: [Openal] Re: Re: capturing audio from line in
> To: openal at opensource.creative.com
> Message-ID: <200810251314.08643.chris.kcat at gmail.com>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> On Saturday 25 October 2008 12:31:06 pm Daniel Chaves Toscano Dantas wrote:
>   
>> Hello,
>>
>> Thanks for your reply.
>>
>> I'm using OpenAL Soft 1.5.304.
>> It's available at http://kcat.strangesoft.net/openal.html as a tarball
>> distro. Is this version stable for capturing purposes ?
>>     
>
> It should be, relatively. The thing that stands out to me though is that the 
> names aren't formatted like 1.5 would format them:
> snprintf(name, sizeof(name), "ALSA Capture on %s [%s]",
>          cname, dname);
> but your list is conspicuously missing the [] section. You can use ldd to make 
> sure the executable is loading at the right lib.
>
> If it is, you can run:
> arecord -l
> to get a list of capture devices. Then in ~/.alsoftrc, you can try setting:
> [alsa]
> default = plughw:x,y
> where x,y are the card and device numbers respectively of the listed devices. 
> Opening "ALSA Capture on default" will then open the named device, which 
> hopefully one of them will be the mic.
>
>
> ------------------------------
>
> _______________________________________________
> Openal mailing list
> Openal at opensource.creative.com
> http://opensource.creative.com/mailman/listinfo/openal
>
>
> End of Openal Digest, Vol 31, Issue 7
> *************************************
>
>
>   



More information about the Openal mailing list