On Mon, Mar 17, 2008 at 5:18 AM, Rene Herman <[EMAIL PROTECTED]>
wrote:
> On 17-03-08 03:57, Alexander Indenbaum wrote:
>
> > I'm playing with embedded system without any hardware sound device. I'd
> like
> > to grab sound from ALSA application, for instance Firefox displaying
> YouTube
> > clip inside flash plugin and to store output PCM stream into file on
> local
> > disk. I got an advice to use File extension. So I defined following
> > /usr/share/alsa/alsa.conf
>
> Don't do it there. Use /etc/asound.conf or $HOME/.asoundrc ...
>
Generally I'd agree with you that $HOME/.asoundrc is way to go if it was my
desktop workstation. But this is an embedded system, so I'd like to force it
on system level.
> > pcm.default{
> > type
> > file
> > file
> > /tmp/pcm.out
> > }
>
> ... and make it
>
> pcm.!default {
> type file
> slave {
> pcm null
> }
> file "/tmp/pcm.out"
> }
>
Still it does not work ( I still use system alsa.conf though ). Now I get:
"Unknown PCM null"
"Unknown PCM plughw:0,0"
> Exactly why you need that slave definition I'm not sure either, but it
> seems
> you do. Also note that /tmp/pcm.out will be headerless PCM and is
> recreated
> for individual opens. I don't believe there's an append mode or anything
> (and you'd need to make sure that everyone plays the same format) so not
> toot sure if this is what you need to have a catch all audio-sink...
You touching here an interesting point. How indeed I could get an PCM
header?
>
>
> Rene.
>
Thank you for your help, Rene.
--
Alexander Indenbaum
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user