Subject: Re: [ecasound] ogg / streaming / ecasound
From: Smoerk (smoerk_AT_gmx.de)
Date: Sun Oct 13 2002 - 14:29:25 EEST
maybe I could use alsaplayer with jack output and ecasound with jack
input. do you think it's possible? I have no experience with jack, but
maybe it's a better way than using named pipes. and maybe it solves the
blocking problem? I have to try (not sure if I will understand how to
use jack, but I will try).
janne halttunen wrote:
> Oh yes. You need to use named pipes (fifos).
>
> $ mkfifo myfifo.raw
> $ ogg123 -d raw -f - http://musiikki.fi/livestream.ogg > myfifo.raw
>
> $ ecasound -i myfifo.raw
>
> Ofcourse you have to make sure that the formats match in stream and ecasound.
>
>
>>also I need to open and close streams without restarting ecasound.
>
>
> For this you need to make a script:
>
> 1. make as many fifos as max number of streams
> 2. initialize and start ecasound on the fifos
> 3. loop over:
> - open and close streams
> - read data from streams
> - write data to fifos
> - write silence to fifos that are not receiving data (*
> 4. exit cleanly
>
> *) Ecasound blocks if there is no data available from input.
This archive was generated by hypermail 2b28 : Sun Oct 13 2002 - 14:27:18 EEST