D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Cloning ALSA device

 

Maybe look into PulseAudio sound server?! It's planned as a feature in
Fedora 8 and from what I understand has this kind of ability...

Jon

On 11/09/2007, Rob Beard <rob@xxxxxxxxxxxxx> wrote:
> Hi folks,
>
> I'm in the process of setting up a Linux box running Ubuntu which will
> record the audio on it's line input at specific times (controled by a
> cron job).
>
> The thing is, I need it to be able to stream the audio using icecast
> whilst also recording it in WAV format.
>
> Now this would work fine with two sound cards but this machine only
> has one card.  I was reading up about creating a 'slave' device with
> Alsa.  I've managed to create a slave device but I can only record
> from one device at once so I can either run arecord to capture the
> audio as WAV or run icecast.  When I try and run both at once it
> complains about the device being in use.
>
> I was wondering if anyone had any ideas on how to get around this?
>
> Could I possibly use a named pipe and just cat from /dev/dsp to a
> named pipe and then run cat on this named pipe to a file (to capture
> the raw audio for later conversion to WAV) and also play the contents
> of the pipe through mplayer?
>
> If anyone could help it would be really handy.
>
> Ta,
>
> Rob
>
>
>
>
> --
> The Mailing List for the Devon & Cornwall LUG
> http://mailman.dclug.org.uk/listinfo/list
> FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html
>

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html