Re: Sound Capture

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2007-08-14 at 04:13 +0000, Mohan Kashyap wrote:
> Hi ALL,
> 
> We are trying to capture sound using a tee device, the configurations
> are as follows,
> pcm.a2dpcopy {
>         type plug
>     slave {
>         pcm "tee:default,'/tmp/a2dpipe', raw"
>         rate 44100
>         channels 2
>     }
> }
> 
> pcm.a2dp {
>             type plug
>             slave {
>                   pcm "file:'/tmp/a2dpipe', raw"
>                   rate 44100
>                   channels 2
>             }
> }
> 
> However we were not able to assign this device to alsa player. How do
> we go about it.
> 
> [root@localhost ~]# alsaplayer --device=\"a2dpcopy\"
> ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM "a2dpcopy"
> snd_pcm_open: No such file or directory ("a2dpcopy")
> Failed to initialize plugin!
> Failed to register
> plugin: /usr/local/lib/alsaplayer/output/libalsa_out.so
> Failed to load output plugin "alsa". Trying defaults.
> ALSA lib pcm.c:2143:(snd_pcm_open_noupdate) Unknown PCM "a2dpcopy"
> snd_pcm_open: No such file or directory ("a2dpcopy")
> Failed to initialize plugin!

the

  --device=\"a2dpcopy"

is what is causing the problem - you are passing the literal double
quotes to the program (and obviously they are not in the name of the
PCM.)

Both work fine for me if I do:

   aplay -D a2dpcopy foo.wav

/J\
-- 
My guitar kills bloggers

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux