Re: [ecasound] ecasound auto exit in daemon mode

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Sat Mar 05 2005 - 08:53:05 EET

On Mon, 21 Feb 2005, Kamil Wencel wrote:

> 1. Is it possible to start ecasound like this :
> ecasound --daemon -f:16,2,96000 -B:rtlowlatency -b:128 -i
> resample-hq,44100,'foo.wav' -f:32,2,96000 -o alsa,spdif
> AND let ecasound exit when the track is finished.

Two options:

1) Run the setup with the "run" EIAM command (blocks until processing
   is finished) and then issue "quit".

2) "start", and then poll engine status until it is "finished",
   and then you can "quit".

> what would the correct syntax be if I want the 16/44 input file
> upsampled to alsa and no upsampling for the
> second stream which is piped into ices ?

This is a bit tricky as the "resample*" objects do not support real-time
child objects. So the only way is to resample the ices-chain twice:

> ecasound (--daemon) -a:1,2 -f:16,2,96000 -B:rtlowlatency -b:128 -a:1 -i
> resample-hq,44100,'foo.wav' -f:32,2,96000 -a:1 -o alsa,spdif -a:2 -o
> stdout | ices

ecasound -a:1,2 -f:16,2,96000 -B:rtlowlatency -b:128 -a:1 -i \
resample-hq,44100,'foo.wav' -f:32,2,96000 -a:1 -o alsa,spdif -a:2 -o \
resample-hq,44100,stdout | ices

... hopefully that works. As usual, I recommend first testing with
"resample" instead of "resample-hq" (switch to -hq only after you have
verified that basic functionality is ok).

 Audio software for Linux!
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Ecasound-list mailing list
Received on Sat Mar 5 12:15:05 2005

This archive was generated by hypermail 2.1.8 : Sat Mar 05 2005 - 12:15:05 EET