Ecasound chews up cpu

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

Subject: Ecasound chews up cpu
From: H. T. Hind (hirh_AT_comcast.net)
Date: Thu Oct 30 2003 - 05:48:23 EET


Hello,

I'm trying to get ecasound to record to a file on demand and I'm
trying the following -

I start ecasound in daemon mode and load a file to get ecasound
to start writing to say 1.wav

After a few minutes I load a second file to get ecasound to start
writing to say 2.wav. When I do this, ecasound starts eating up
cpu cycles and goes on to 99% from 7-8%.

Here are the two files -

-------------file e1.ecs--------------------

# ecasound chainsetup file

# general
-b:4096 -r:-1 -z:intbuf -z:db,1000000 -n:radio -X -z:noxruns
-z:nopsr

# audio inputs
-a:1,2 -f:s16_le,2,44100 -i:alsahw,1,0,0

# audio outputs
-a:1 -f:s16_le,2,44100 -o:alsahw,0,0,0
-a:2 -f:s16_le,2,44100 -o:/tmp/1.wav
-------------file e1.ecs--------------------
and
-------------file e2.ecs--------------------

# ecasound chainsetup file

# general
-b:4096 -r:-1 -z:intbuf -z:db,1000000 -n:radio2 -X -z:noxruns
-z:nopsr

# audio inputs
-a:1,2 -f:s16_le,2,44100 -i:alsahw,1,0,0

# audio outputs
-a:1 -f:s16_le,2,44100 -o:alsahw,0,0,0
-a:2 -f:s16_le,2,44100 -o:/tmp/2.wav
-------------file e2.ecs--------------------

I start ecasound thus -
$ ecasound --daemon
ecasound ('h' for help)> cs-load /tmp/e1.ecs
ecasound ('h' for help)> cs-disconnect
ecasound ('h' for help)> cs-load /tmp/e2.ecs
ecasound ('h' for help)> start

as soon as I do the above, ecasound starts eating up the cpu
cycles.

I'm doing the above to be able to setup a sound recording daemon,
which can record on demand and write to different files as
required. Is there a better way to do it ?

If I can get the above to work properly , then I can do it via
the python interface and provide a wrapper around it.

TIA,
hth

--


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

This archive was generated by hypermail 2b28 : Thu Oct 30 2003 - 05:46:17 EET