Re: [ecasound] GSM input and output

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] GSM input and output
From: Kai Vehmanen (k_AT_eca.cx)
Date: Wed Mar 27 2002 - 02:50:05 EET


On Thu, 21 Mar 2002, Armand Bendanan wrote:

> For playing, I have used sox to decompress a gsm file like:
> sox -t gsm -c1 -gb minute.gsm -t raw -r 44100 -c2 -sw - | ecasound -i:stdin -o /dev/dsp
[...]
> But now, if I want to play multiple gsm files at the same time, there is only ONE stdin !!!

One, very, very crude solution is to use named pipes. Something like:

--cut--
mkfifo gsmpipe1.raw
mkfifo gsmpipe2.raw
sox -t gsm -c1 -gb minute.gsm -t raw -r 44100 -c2 -sw - >gsmpipe1.raw &
sox -t gsm -c1 -gb minute2.gsm -t raw -r 44100 -c2 -sw - >gsmpipe2.raw &
ecasound -a:1 -i gsmpipe1.raw \
         -a:2 -i gsmpipe2.raw \
         -a:1,2 -o /dev/dsp
--cut--

Not very convenient, but it does work. ;) If you need to do this often,
writing a ecasound audio-i/o plugin for gsm files is probably easier.

-- 
 http://www.eca.cx
 Audio software for Linux!

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request_AT_wakkanet.fi>.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Mar 27 2002 - 02:40:30 EET