[ecasound] Fwd: ecasound stop unexpectedly... more info needed

From: francis keyes <fkeymo@email-addr-hidden>
Date: Sat Sep 06 2008 - 01:31:27 EEST

---------- Forwarded message ----------
From: francis keyes <fkeymo@email-addr-hidden>
Date: Fri, Sep 5, 2008 at 7:27 PM
Subject: Re: ecasound stop unexpectedly... more info needed
To: Kai Vehmanen <kvehmanen@email-addr-hidden>

Hi,

There is no unusual output from jackd. The ecasound logfile is very long.
I have pasted the begining and the end below, cutting out a big chunk from
the middle. This time when running the code I included a break statement if
the engine-status command returns anything other than "running".... so I
never had to hit Control-c to stop it. This time it ran for about 5 seconds
before stopping. I have included the code again below the log file output.
Maybe you can try it on a system and see what you get?
Thanks so much,
Francis

ECASOUND_LOGFILE:

Fri Sep 5 19:16:53 2008
Opening logfile "/root/eca-example/ecalog" for ecasound-2.4.6.1
(logger=0x8279b70, pid=10912):
[SUBSYST.] (eca-session) Session created <0>
[SUBSYST.] (eca-chainsetup) Chainsetup created (cmdline) <1>
[SYSTEM ] (audioio-db-server) constructor <2>
[SYSTEM ] (eca-chainsetup) Rtcaps detected. <3>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-f:s16_le,2,44100,i". <4>
[OBJECTS ] (eca-chainsetup-parser) Changed active format to
(bits/channels/srate/interleave): s16_le/2/44100/i <5>
[OBJECTS ] (eca-chainsetup) sample rate change, chainsetup
command-line-setup to rate 44100. <6>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-z:mixmode,avg". <7>
[SYSTEM ] (eca-static-object-maps) register_chain_operator_objects() <8>
[SYSTEM ] (eca-static-object-maps) register_controller_objects() <9>
[SYSTEM ] (eca-chain) constructor: CHAIN <10>
[OBJECTS ] (eca-chainsetup) Chain "default" created. <11>
[INFO ] (eca-session) Note! Unable to create a valid chainsetup from the
command-line arguments. <12>
[SYSTEM ] (eca-control) ECA_CONTROL constructor <13>
[OBJECTS ] (eca-control) command: debug 256 <14>
[EIAM ] (eca-control) Debug level set to 256. <15>
[OBJECTS ] (eca-control) command: int-set-float-to-string-precision 17 <16>
[OBJECTS ] (eca-control) command: int-output-mode-wellformed <17>
Closing logfile (logger=0x8279b70, pid=10912).
---------------------------------------------------------------------
Fri Sep 5 19:16:53 2008
Opening logfile "/root/eca-example/ecalog" for ecasound-2.4.6.1
(logger=0x8279ad0, pid=10912):
[EIAM ] (eca-control) - <18>
[OBJECTS ] (eca-control) command: cs-add waveup_cs <19>
[SUBSYST.] (eca-chainsetup) Chainsetup created (empty) <20>
[SYSTEM ] (audioio-db-server) constructor <21>
[SYSTEM ] (eca-chainsetup) Rtcaps detected. <22>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-f:s16_le,2,44100,i". <23>
[OBJECTS ] (eca-chainsetup-parser) Changed active format to
(bits/channels/srate/interleave): s16_le/2/44100/i <24>
[OBJECTS ] (eca-chainsetup) sample rate change, chainsetup to rate 44100.
<25>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-z:mixmode,avg". <26>
[INFO ] (eca-control-objects) Added a new chainsetup with name
"waveup_cs". <27>
[EIAM ] (eca-control) - <28>
[OBJECTS ] (eca-control) command: c-add osc1 <29>
[SYSTEM ] (eca-chain) constructor: CHAIN <30>
[OBJECTS ] (eca-chainsetup) Chain "osc1" created. <31>
[INFO ] (eca-control-objects) Added chains: osc1. <32>
[EIAM ] (eca-control) - <33>
[OBJECTS ] (eca-control) command: ai-add null <34>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option "-i:null".
<35>
[SYSTEM ] (eca-static-object-maps) register_audio_io_rt_objects() <36>
[SYSTEM ] (eca-static-object-maps) register_audio_io_nonrt_objects() <37>
[OBJECTS ] (eca-static-object-maps) All libsndfile supported extensions:
aiff,au,avr,caf,htk,iff,mat,mat,paf,pvf,raw,sd2,sds,sf,voc,w64,wav,wav,wav,xi,
<38>
[OBJECTS ] (eca-object-factory) Object "-i:null" created, type "Null audio
object". Has 1 parameter(s). <39>
[SYSTEM ] (eca-chainsetup-parser) adding file "null". <40>
[OBJECTS ] (audioio) set srate, aobj 'Null audio object:null' to 44100. <41>
[OBJECTS ] (audioio-db-client) DB-client created for null. <42>
[OBJECTS ] (audioio) set srate, aobj 'DB => Null audio object:uninitialized'
to 44100. <43>
[OBJECTS ] (audioio) set srate, aobj 'Null audio object:null' to 44100. <44>
[OBJECTS ] (audioio) set srate, aobj 'Null audio object:null' to 44100. <45>
[SYSTEM ] (eca-chainsetup) Assigning file to chains: osc1 <46>
[INFO ] (eca-control-objects) Added audio input "null". <47>
[EIAM ] (eca-control) - <48>
[OBJECTS ] (eca-control) command: ao-add jack_generic,osc1 <49>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-o:jack_generic,osc1". <50>
[OBJECTS ] (eca-object-factory) Object "-o:jack_generic,osc1" created, type
"JACK interface". Has 1 parameter(s). <51>
[SYSTEM ] (eca-chainsetup-parser) adding file "jack_generic". <52>
[OBJECTS ] (audioio) set srate, aobj 'JACK interface:jack_generic' to 44100.
<53>
[SYSTEM ] (audioio_jack_manager) constructor <54>
[SYSTEM ] (eca-chainsetup) Creating object manager 'jack' for aio 'JACK
interface'. <55>
[SYSTEM ] (audioio_jack_manager) register object jack_generic <56>
[SYSTEM ] (audioio_jack) setting manager to jack <57>
[SYSTEM ] (eca-chainsetup) Registered audio i/o manager 'jack' as the
current engine driver. <58>
[SYSTEM ] (eca-chainsetup) Assigning file to chains: osc1 <59>
[INFO ] (eca-control-objects) Added audio output "jack_generic,osc1".
<60>
[EIAM ] (eca-control) - <61>
[OBJECTS ] (eca-control) command: cop-add -el:sine_fcac,0,0 <62>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-el:sine_fcac,0,0". <63>
[SYSTEM ] (eca-static-object-maps) register_ladspa_plugin_objects() <64>
[OBJECTS ] (eca-static-object-maps) Unable to open plugin file
"/usr/lib/ladspa/ladspa-rubberband.cat". <65>
[OBJECTS ] (eca-static-object-maps) Unable to open plugin file
"/usr/lib/ladspa/blop_files". <66>
[OBJECTS ] (eca-static-object-maps) Unable to open plugin file
"/usr/lib/ladspa/jamincont_1912.la". <67>
[INFO ] (eca-object-map) WARNING: Keyword plate doesn't match to regex
^plate$ for object 'Plate reverb' (). <68>
[OBJECTS ] (eca-object-factory) Creating LADSPA-plugin "Sine Oscillator
(Freq:control, Amp:control)" <69>
[OBJECTS ] (eca-object-factory) Setting parameters: Frequency = 0.000,
Amplitude = 0.000 <70>
[SYSTEM ] (eca-chainsetup) Adding chainop to chain osc1. <71>
[OBJECTS ] (audiofx) Setting samplerate to 44100 for object Sine Oscillator
(Freq:control, Amp:control). Old value 384000. <72>
[EIAM ] (eca-control) - <73>
[OBJECTS ] (eca-control) command: copp-select 1 <74>
[EIAM ] (eca-control) - <75>
[OBJECTS ] (eca-control) command: copp-set 440.00000000000000000 <76>
[EIAM ] (eca-control) - <77>
[OBJECTS ] (eca-control) command: copp-select 2 <78>
[EIAM ] (eca-control) - <79>
[OBJECTS ] (eca-control) command: copp-set 5.0000000000000000000 <80>
[EIAM ] (eca-control) - <81>
[OBJECTS ] (eca-control) command: cop-add -ea:150 <82>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option "-ea:150".
<83>
[OBJECTS ] (eca-object-factory) Creating chain operator "Amplify" <84>
[OBJECTS ] (eca-object-factory) Setting parameters: amp-% = 150.000 <85>
[SYSTEM ] (eca-chainsetup) Adding chainop to chain osc1. <86>
[OBJECTS ] (audiofx) Setting samplerate to 44100 for object Amplify. Old
value 384000. <87>
[EIAM ] (eca-control) - <88>
[OBJECTS ] (eca-control) command: ctrl-add -kos:1,25,50,1,0 <89>
[SYSTEM ] (eca-chainsetup-parser) Interpreting object option
"-kos:1,25,50,1,0". <90>
[OBJECTS ] (eca-object-factory) Creating controller source "Sine oscillator"
<91>
[OBJECTS ] (eca-object-factory) Setting parameters: param-id = 1.000,
range-low = 25.000, range-high = 50.000, freq = 1.000, phase-offset = 0.000
<92>
[OBJECTS ] (eca-chain) Source "Sine oscillator" connected to target
"Amplify". Current source value is 0.50 and target 150.00. <93>
[EIAM ] (eca-control) - <94>
[OBJECTS ] (eca-control) command: ctrlp-select 4 <95>
[EIAM ] (eca-control) - <96>
[OBJECTS ] (eca-control) command: ctrlp-set 1.000000000000000000 <97>
[EIAM ] (eca-control) - <98>
[OBJECTS ] (eca-control) command: cs-connect <99>
[SUBSYST.] (eca-session) Connecting chainsetup <100>
[OBJECTS ] (eca-chainsetup) jackd buffersize check returned 1024. <101>
[SYSTEM ] (eca-chainsetup) overriding buffersize. <102>
[SYSTEM ] (eca-chainsetup) bmode-selection case-4 <103>
[INFO ] (eca-chainsetup) 'rtlowlatency' buffering mode selected. <104>
[SYSTEM ] (eca-chainsetup) Set buffering parameters to:
--cut--
buffersize: 256
raised_priority: 1
sched_priority: 50
double buffering: 1
double buffer size: 100000
max buffers: 0
--cut-- <105>
[SYSTEM ] (eca-chainsetup) Memory locked! <106>
[OBJECTS ] (audioio-db-client) open null. <107>
[OBJECTS ] (audioio) set srate, aobj 'DB => Null audio object:null' to
44100. <108>
[OBJECTS ] (audioio) set srate, aobj 'Null audio object:null' to 44100.
<109>
[OBJECTS ] (audioio) set srate, aobj 'Null audio object:null' to 44100.
<110>
[SYSTEM ] (audioio-db-server) Registering client 0. Buffer count 97. <111>
[OBJECTS ] (audioio-db-client) seek null to pos 0.00. <112>
[OBJECTS ] (audioio-db-client) seek null to pos 0.00. <113>
[INFO ] (eca-chainsetup) Audio object "null", mode "read".
(audio-io) Format: s16_le, channels 2, srate 44100, interleaved. <114>
[SYSTEM ] (audioio_jack) open <115>
[SYSTEM ] (audioio_jack_manager) open for client 1 <116>
[OBJECTS ] (audioio_jack_manager) [callback] ecasound: setting srate to
44100 <117>
[SYSTEM ] (audioio_jack_manager) register jack ports for client 1 <118>
[INFO ] (eca-chainsetup) Audio object "jack_generic", mode "write".
(audio-io) Format: f32_le, channels 2, srate 44100, noninterleaved. <119>
[OBJECTS ] (eca-chainsetup) sample rate change, chainsetup waveup_cs to rate
44100. <120>
[OBJECTS ] (audioio) set srate, aobj 'DB => Null audio object:null' to
44100. <121>
[OBJECTS ] (audioio) set srate, aobj 'Null audio object:null' to 44100.
<122>
[OBJECTS ] (audioio) set srate, aobj 'JACK interface:jack_generic' to 44100.
<123>
[OBJECTS ] (eca-chain) sample rate change, chain 'osc1' object 'Sine
Oscillator (Freq:control, Amp:control)' rate 44100. <124>
[OBJECTS ] (audiofx) Setting samplerate to 44100 for object Sine Oscillator
(Freq:control, Amp:control). Old value 44100. <125>
[OBJECTS ] (eca-chain) sample rate change, chain 'osc1' object 'Amplify'
rate 44100. <126>
[OBJECTS ] (audiofx) Setting samplerate to 44100 for object Amplify. Old
value 44100. <127>
[OBJECTS ] (eca-chain) sample rate change, chain 'osc1' object 'Sine
oscillator' rate 44100. <128>
[SUBSYST.] (eca-session) Chainsetup connected <129>
[INFO ] (eca-control-objects) Connected chainsetup: "waveup_cs". <130>
[EIAM ] (eca-control) - <131>
[OBJECTS ] (eca-control) command: start <132>
[SUBSYST.] (eca-control-base) Controller/Processing started <133>
[SYSTEM ] (eca-engine) ECA_ENGINE constructor <134>
[SYSTEM ] (eca-engine) Prefill loops: 3 (blocksize 1024). <135>
[OBJECTS ] (audiofx) (audiofx) Init w/ samplerate 44100 for object Sine
Oscillator (Freq:control, Amp:control). <136>
[SYSTEM ] (audiofx_ladspa) Instantiated 2 LADSPA plugin(s), each with 0
audio input port(s) and 1 output port(s), to chain with 2 channel(s) and
srate of 44100. <137>
[OBJECTS ] (osc-sine) (osc-sine) Sine oscillator created; frequency 1.000
and initial phase of 0.000. <138>
[SYSTEM ] (eca-chain) Initialized chain osc1 with 2 chainops and 1
gcontrollers. Sbuf points to 136895072. <139>
[SYSTEM ] (eca-control-base) Engine-thread pid: 10912 <140>
[SUBSYST.] (eca-engine) Engine init - Driver start <141>
[SYSTEM ] (audioio_jack_manager) driver exec <142>
[SYSTEM ] (audioio-db-server) start <143>
[EIAM ] (eca-control) - <144>
[SYSTEM ] (audioio-db-server) Hey, in the I/O loop! <145>
[SYSTEM ] (audioio-db-server) Using idle timeout of 225000000 nsecs. <146>
[SYSTEM ] (audioio-db-server) starting processing <147>
[OBJECTS ] (eca-engine) prefilling i/o buffers. <148>
[OBJECTS ] (eca-engine) i/o buffers prefilled. <149>
[SYSTEM ] (audioio_jack) prepare / jack_generic <150>
[INFO ] (eca-engine) Using realtime-scheduling (SCHED_FIFO:50). <151>
[SYSTEM ] (audioio_jack_manager) jack_activate() <152>
[OBJECTS ] (eca-engine) Request start <153>
[SYSTEM ] (audioio_jack_manager) driver start <154>
[SYSTEM ] (eca-engine) starting engine operation! <155>
[SYSTEM ] (audioio_jack) start / jack_generic <156>
[SYSTEM ] (eca-engine) conditional stop <157>
[SYSTEM ] (eca-engine) stopping engine operation! <158>
[SYSTEM ] (audioio_jack) stop / jack_generic <159>
[SYSTEM ] (audioio-db-server) stop <160>
[SYSTEM ] (eca-engine) Changed back to non-realtime scheduling SCHED_OTHER.
<161>
[SYSTEM ] (eca-engine) Signaling stop <162>
[OBJECTS ] (eca-chainsetup) seek position, chainsetup 'waveup_cs' to pos in
sec 268. <163>
[OBJECTS ] (audioio-db-client) seek null to pos 267.89. <164>
[OBJECTS ] (eca-chain) seek position, to pos 268. <165>
[SYSTEM ] (audioio-db-server) start <166>
[SYSTEM ] (audioio-db-server) starting processing <167>
[OBJECTS ] (eca-engine) prefilling i/o buffers. <168>
[OBJECTS ] (eca-engine) i/o buffers prefilled. <169>
[SYSTEM ] (audioio_jack) prepare / jack_generic <170>
[INFO ] (eca-engine) Using realtime-scheduling (SCHED_FIFO:50). <171>
[SYSTEM ] (eca-engine) starting engine operation! <172>
[SYSTEM ] (audioio_jack) start / jack_generic <173>
[OBJECTS ] (eca-control) command: c-select osc1 <174>
[EIAM ] (eca-control) - <175>
[OBJECTS ] (eca-control) command: cop-select 1 <176>
[EIAM ] (eca-control) - <177>
[OBJECTS ] (eca-control) command: copp-select 1 <178>
[EIAM ] (eca-control) - <179>
[OBJECTS ] (eca-control) command: copp-set 60.000000000000000000 <180>
[EIAM ] (eca-control) - <181>
[OBJECTS ] (eca-control) command: c-select osc1 <182>
[EIAM ] (eca-control) - <183>
[OBJECTS ] (eca-control) command: cop-select 1 <184>
[EIAM ] (eca-control) - <185>
[OBJECTS ] (eca-control) command: copp-select 1 <186>
[EIAM ] (eca-control) - <187>
[OBJECTS ] (eca-control) command: copp-set 61.000000000000000000 <188>
[EIAM ] (eca-control) - <189>
[OBJECTS ] (eca-control) command: c-select osc1 <190>
[EIAM ] (eca-control) - <191>
[OBJECTS ] (eca-control) command: cop-select 1 <192>
[EIAM ] (eca-control) - <193>
[OBJECTS ] (eca-control) command: copp-select 1 <194>
[EIAM ] (eca-control) - <195>
[OBJECTS ] (eca-control) command: copp-set 62.000000000000000000 <196>
[EIAM ] (eca-control) - <197>
[OBJECTS ] (eca-control) command: c-select osc1 <198>
[EIAM ] (eca-control) - <199>
[OBJECTS ] (eca-control) command: cop-select 1 <200>
[EIAM ] (eca-control) - <201>
[OBJECTS ] (eca-control) command: copp-select 1 <202>
[EIAM ] (eca-control) - <203>
[OBJECTS ] (eca-control) command: copp-set 63.000000000000000000 <204>
[EIAM ] (eca-control) - <205>
[OBJECTS ] (eca-control) command: c-select osc1 <206>
[EIAM ] (eca-control) - <207>
[OBJECTS ] (eca-control) command: cop-select 1 <208>
[EIAM ] (eca-control) - <209>
[OBJECTS ] (eca-control) command: copp-select 1 <210>
[EIAM ] (eca-control) - <211>
[OBJECTS ] (eca-control) command: copp-set 64.000000000000000000 <212>
[EIAM ] (eca-control) - <213>
[OBJECTS ] (eca-control) command: c-select osc1 <214>
[EIAM ] (eca-control) - <215>
[OBJECTS ] (eca-control) command: cop-select 1 <216>
[EIAM ] (eca-control) - <217>
[OBJECTS ] (eca-control) command: copp-select 1 <218>
[EIAM ] (eca-control) - <219>
[OBJECTS ] (eca-control) command: copp-set 65.000000000000000000 <220>
[EIAM ] (eca-control) - <221>
[OBJECTS ] (eca-control) command: c-select osc1 <222>
[EIAM ] (eca-control) - <223>
[OBJECTS ] (eca-control) command: cop-select 1 <224>
[EIAM ] (eca-control) - <225>
[OBJECTS ] (eca-control) command: copp-select 1 <226>
[EIAM ] (eca-control) - <227>
[OBJECTS ] (eca-control) command: copp-set 66.000000000000000000 <228>
[EIAM ] (eca-control) - <229>
[OBJECTS ] (eca-control) command: c-select osc1 <230>
[EIAM ] (eca-control) - <231>
[OBJECTS ] (eca-control) command: cop-select 1 <232>
[EIAM ] (eca-control) - <233>
[OBJECTS ] (eca-control) command: copp-select 1 <234>
[EIAM ] (eca-control) - <235>
[OBJECTS ] (eca-control) command: copp-set 67.000000000000000000 <236>
[EIAM ] (eca-control) - <237>
[OBJECTS ] (eca-control) command: c-select osc1 <238>
[EIAM ] (eca-control) - <239>
[OBJECTS ] (eca-control) command: cop-select 1 <240>
[EIAM ] (eca-control) - <241>
[OBJECTS ] (eca-control) command: copp-select 1 <242>
[EIAM ] (eca-control) - <243>
[OBJECTS ] (eca-control) command: copp-set 68.000000000000000000 <244>
[EIAM ] (eca-control) - <245>
[OBJECTS ] (eca-control) command: c-select osc1 <246>
[EIAM ] (eca-control) - <247>
[OBJECTS ] (eca-control) command: cop-select 1 <248>
[EIAM ] (eca-control) - <249>
[OBJECTS ] (eca-control) command: copp-select 1 <250>
[EIAM ] (eca-control) - <251>
[OBJECTS ] (eca-control) command: copp-set 69.000000000000000000 <252>
[EIAM ] (eca-control) - <253>
[OBJECTS ] (eca-control) command: c-select osc1 <254>
[EIAM ] (eca-control) - <255>
[OBJECTS ] (eca-control) command: cop-select 1 <256>
[EIAM ] (eca-control) - <257>
[OBJECTS ] (eca-control) command: copp-select 1 <258>
[EIAM ] (eca-control) - <259>
[OBJECTS ] (eca-control) command: copp-set 70.000000000000000000 <260>
[EIAM ] (eca-control) - <261>
[OBJECTS ] (eca-control) command: c-select osc1 <262>
[EIAM ] (eca-control) - <263>
[OBJECTS ] (eca-control) command: cop-select 1 <264>
[EIAM ] (eca-control) - <265>
[OBJECTS ] (eca-control) command: copp-select 1 <266>
[EIAM ] (eca-control) - <267>
[OBJECTS ] (eca-control) command: copp-set 71.000000000000000000 <268>
[EIAM ] (eca-control) - <269>
[OBJECTS ] (eca-control) command: c-select osc1 <270>
[EIAM ] (eca-control) - <271>
[OBJECTS ] (eca-control) command: cop-select 1 <272>
[EIAM ] (eca-control) - <273>
[OBJECTS ] (eca-control) command: copp-select 1 <274>
[EIAM ] (eca-control) - <275>
[OBJECTS ] (eca-control) command: copp-set 72.000000000000000000 <276>
[EIAM ] (eca-control) - <277>
[OBJECTS ] (eca-control) command: c-select osc1 <278>
[EIAM ] (eca-control) - <279>
[OBJECTS ] (eca-control) command: cop-select 1 <280>
[EIAM ] (eca-control) - <281>
[OBJECTS ] (eca-control) command: copp-select 1 <282>
[EIAM ] (eca-control) - <283>
[OBJECTS ] (eca-control) command: copp-set 73.000000000000000000 <284>
[EIAM ] (eca-control) - <285>
[OBJECTS ] (eca-control) command: c-select osc1 <286>
[EIAM ] (eca-control) - <287>
[OBJECTS ] (eca-control) command: cop-select 1 <288>
[EIAM ] (eca-control) - <289>
[OBJECTS ] (eca-control) command: copp-select 1 <290>
[EIAM ] (eca-control) - <291>
[OBJECTS ] (eca-control) command: copp-set 74.000000000000000000 <292>
[EIAM ] (eca-control) - <293>
[OBJECTS ] (eca-control) command: c-select osc1 <294>
[EIAM ] (eca-control) - <295>
[OBJECTS ] (eca-control) command: cop-select 1 <296>
[EIAM ] (eca-control) - <297>
[OBJECTS ] (eca-control) command: copp-select 1 <298>
[EIAM ] (eca-control) - <299>
[OBJECTS ] (eca-control) command: copp-set 75.000000000000000000 <300>
[EIAM ] (eca-control) - <301>
[OBJECTS ] (eca-control) command: c-select osc1 <302>
[EIAM ] (eca-control) - <303>
[OBJECTS ] (eca-control) command: cop-select 1 <304>
[EIAM ] (eca-control) - <305>
[OBJECTS ] (eca-control) command: copp-select 1 <306>
[EIAM ] (eca-control) - <307>
[OBJECTS ] (eca-control) command: copp-set 76.000000000000000000 <308>
[EIAM ] (eca-control) - <309>
[OBJECTS ] (eca-control) command: c-select osc1 <310>
[EIAM ] (eca-control) - <311>
[OBJECTS ] (eca-control) command: cop-select 1 <312>
[EIAM ] (eca-control) - <313>
[OBJECTS ] (eca-control) command: copp-select 1 <314>
[EIAM ] (eca-control) - <315>
[OBJECTS ] (eca-control) command: copp-set 77.000000000000000000 <316>
[EIAM ] (eca-control) - <317>
[OBJECTS ] (eca-control) command: c-select osc1 <318>
[EIAM ] (eca-control) - <319>
[OBJECTS ] (eca-control) command: cop-select 1 <320>
[EIAM ] (eca-control) - <321>
[OBJECTS ] (eca-control) command: copp-select 1 <322>
[EIAM ] (eca-control) - <323>
[OBJECTS ] (eca-control) command: copp-set 78.000000000000000000 <324>
[EIAM ] (eca-control) - <325>
[OBJECTS ] (eca-control) command: c-select osc1 <326>
[EIAM ] (eca-control) - <327>
[OBJECTS ] (eca-control) command: cop-select 1 <328>
[EIAM ] (eca-control) - <329>
[OBJECTS ] (eca-control) command: copp-select 1 <330>
[EIAM ] (eca-control) - <331>
[OBJECTS ] (eca-control) command: copp-set 79.000000000000000000 <332>
[EIAM ] (eca-control) - <333>
[OBJECTS ] (eca-control) command: c-select osc1 <334>
[EIAM ] (eca-control) - <335>
[OBJECTS ] (eca-control) command: cop-select 1 <336>
[EIAM ] (eca-control) - <337>
[OBJECTS ] (eca-control) command: copp-select 1 <338>
[EIAM ] (eca-control) - <339>
[OBJECTS ] (eca-control) command: copp-set 80.000000000000000000 <340>
[EIAM ] (eca-control) - <341>
[OBJECTS ] (eca-control) command: c-select osc1 <342>
[EIAM ] (eca-control) - <343>
[OBJECTS ] (eca-control) command: cop-select 1 <344>
[EIAM ] (eca-control) - <345>
[OBJECTS ] (eca-control) command: copp-select 1 <346>
[EIAM ] (eca-control) - <347>
[OBJECTS ] (eca-control) command: copp-set 81.000000000000000000 <348>
[EIAM ] (eca-control) - <349>
[OBJECTS ] (eca-control) command: c-select osc1 <350>
[EIAM ] (eca-control) - <351>
[OBJECTS ] (eca-control) command: cop-select 1 <352>
[EIAM ] (eca-control) - <353>
[OBJECTS ] (eca-control) command: copp-select 1 <354>
[EIAM ] (eca-control) - <355>
[OBJECTS ] (eca-control) command: copp-set 82.000000000000000000 <356>
[EIAM ] (eca-control) - <357>
[OBJECTS ] (eca-control) command: c-select osc1 <358>
[EIAM ] (eca-control) - <359>
[OBJECTS ] (eca-control) command: cop-select 1 <360>
[EIAM ] (eca-control) - <361>
[OBJECTS ] (eca-control) command: copp-select 1 <362>
[EIAM ] (eca-control) - <363>
[OBJECTS ] (eca-control) command: copp-set 83.000000000000000000 <364>
[EIAM ] (eca-control) - <365>
[OBJECTS ] (eca-control) command: c-select osc1 <366>
[EIAM ] (eca-control) - <367>
[OBJECTS ] (eca-control) command: cop-select 1 <368>
[EIAM ] (eca-control) - <369>
[OBJECTS ] (eca-control) command: copp-select 1 <370>
[EIAM ] (eca-control) - <371>
[OBJECTS ] (eca-control) command: copp-set 84.000000000000000000 <372>
[EIAM ] (eca-control) - <373>
[OBJECTS ] (eca-control) command: c-select osc1 <374>
[EIAM ] (eca-control) - <375>
[OBJECTS ] (eca-control) command: cop-select 1 <376>
[EIAM ] (eca-control) - <377>
[OBJECTS ] (eca-control) command: copp-select 1 <378>
[EIAM ] (eca-control) - <379>
[OBJECTS ] (eca-control) command: copp-set 85.000000000000000000 <380>
[EIAM ] (eca-control) - <381>
[OBJECTS ] (eca-control) command: c-select osc1 <382>
[EIAM ] (eca-control) - <383>
[OBJECTS ] (eca-control) command: cop-select 1 <384>
[EIAM ] (eca-control) - <385>
[OBJECTS ] (eca-control) command: copp-select 1 <386>
[EIAM ] (eca-control) - <387>
[OBJECTS ] (eca-control) command: copp-set 86.000000000000000000 <388>
[EIAM ] (eca-control) - <389>
[OBJECTS ] (eca-control) command: c-select osc1 <390>
[EIAM ] (eca-control) - <391>
[OBJECTS ] (eca-control) command: cop-select 1 <392>
[EIAM ] (eca-control) - <393>
[OBJECTS ] (eca-control) command: copp-select 1 <394>
[EIAM ] (eca-control) - <395>
[OBJECTS ] (eca-control) command: copp-set 87.000000000000000000 <396>
[EIAM ] (eca-control) - <397>
[OBJECTS ] (eca-control) command: c-select osc1 <398>
[EIAM ] (eca-control) - <399>
[OBJECTS ] (eca-control) command: cop-select 1 <400>
[EIAM ] (eca-control) - <401>
[OBJECTS ] (eca-control) command: copp-select 1 <402>
[EIAM ] (eca-control) - <403>
[OBJECTS ] (eca-control) command: copp-set 88.000000000000000000 <404>
[EIAM ] (eca-control) - <405>
[OBJECTS ] (eca-control) command: c-select osc1 <406>
[EIAM ] (eca-control) - <407>
[OBJECTS ] (eca-control) command: cop-select 1 <408>
[EIAM ] (eca-control) - <409>
[OBJECTS ] (eca-control) command: copp-select 1 <410>
[EIAM ] (eca-control) - <411>
[OBJECTS ] (eca-control) command: copp-set 89.000000000000000000 <412>
[EIAM ] (eca-control) - <413>
[OBJECTS ] (eca-control) command: c-select osc1 <414>
[EIAM ] (eca-control) - <415>
[OBJECTS ] (eca-control) command: cop-select 1 <416>
[EIAM ] (eca-control) - <417>
[OBJECTS ] (eca-control) command: copp-select 1 <418>
[EIAM ] (eca-control) - <419>
[OBJECTS ] (eca-control) command: copp-set 90.000000000000000000 <420>
[EIAM ] (eca-control) - <421>
[OBJECTS ] (eca-control) command: c-select osc1 <422>
[EIAM ] (eca-control) - <423>
[OBJECTS ] (eca-control) command: cop-select 1 <424>
[EIAM ] (eca-control) - <425>
[OBJECTS ] (eca-control) command: copp-select 1 <426>
[EIAM ] (eca-control) - <427>
[OBJECTS ] (eca-control) command: copp-set 91.000000000000000000 <428>
[EIAM ] (eca-control) - <429>
[OBJECTS ] (eca-control) command: c-select osc1 <430>
[EIAM ] (eca-control) - <431>
[OBJECTS ] (eca-control) command: cop-select 1 <432>
[EIAM ] (eca-control) - <433>
[OBJECTS ] (eca-control) command: copp-select 1 <434>
[EIAM ] (eca-control) - <435>
[OBJECTS ] (eca-control) command: copp-set 92.000000000000000000 <436>
[EIAM ] (eca-control) - <437>
[OBJECTS ] (eca-control) command: c-select osc1 <438>
[EIAM ] (eca-control) - <439>
[OBJECTS ] (eca-control) command: cop-select 1 <440>
[EIAM ] (eca-control) - <441>
[OBJECTS ] (eca-control) command: copp-select 1 <442>
[EIAM ] (eca-control) - <443>
[OBJECTS ] (eca-control) command: copp-set 93.000000000000000000 <444>
[EIAM ] (eca-control) - <445>
[OBJECTS ] (eca-control) command: c-select osc1 <446>
[EIAM ] (eca-control) - <447>
[OBJECTS ] (eca-control) command: cop-select 1 <448>
[EIAM ] (eca-control) - <449>
[OBJECTS ] (eca-control) command: copp-select 1 <450>
[EIAM ] (eca-control) - <451>
[OBJECTS ] (eca-control) command: copp-set 94.000000000000000000 <452>
[EIAM ] (eca-control) - <453>
[OBJECTS ] (eca-control) command: c-select osc1 <454>
[EIAM ] (eca-control) - <455>
[OBJECTS ] (eca-control) command: cop-select 1 <456>
[EIAM ] (eca-control) - <457>
[OBJECTS ] (eca-control) command: copp-select 1 <458>
[EIAM ] (eca-control) - <459>
[OBJECTS ] (eca-control) command: copp-set 95.000000000000000000 <460>
[EIAM ] (eca-control) - <461>
[OBJECTS ] (eca-control) command: c-select osc1 <462>
[EIAM ] (eca-control) - <463>
[OBJECTS ] (eca-control) command: cop-select 1 <464>
[EIAM ] (eca-control) - <465>
[OBJECTS ] (eca-control) command: copp-select 1 <466>
[EIAM ] (eca-control) - <467>
[OBJECTS ] (eca-control) command: copp-set 96.000000000000000000 <468>
[EIAM ] (eca-control) - <469>
[OBJECTS ] (eca-control) command: c-select osc1 <470>
[EIAM ] (eca-control) - <471>
[OBJECTS ] (eca-control) command: cop-select 1 <472>
[EIAM ] (eca-control) - <473>
[OBJECTS ] (eca-control) command: copp-select 1 <474>
[EIAM ] (eca-control) - <475>
[OBJECTS ] (eca-control) command: copp-set 97.000000000000000000 <476>
[EIAM ] (eca-control) - <477>
[OBJECTS ] (eca-control) command: c-select osc1 <478>
[EIAM ] (eca-control) - <479>
[OBJECTS ] (eca-control) command: cop-select 1 <480>
[EIAM ] (eca-control) - <481>
[OBJECTS ] (eca-control) command: copp-select 1 <482>
[EIAM ] (eca-control) - <483>
[OBJECTS ] (eca-control) command: copp-set 98.000000000000000000 <484>
[EIAM ] (eca-control) - <485>
[OBJECTS ] (eca-control) command: c-select osc1 <486>
[EIAM ] (eca-control) - <487>
[OBJECTS ] (eca-control) command: cop-select 1 <488>
[EIAM ] (eca-control) - <489>
[OBJECTS ] (eca-control) command: copp-select 1 <490>
[EIAM ] (eca-control) - <491>
[OBJECTS ] (eca-control) command: copp-set 99.000000000000000000 <492>
[EIAM ] (eca-control) - <493>
[OBJECTS ] (eca-control) command: c-select osc1 <494>
[EIAM ] (eca-control) - <495>
[OBJECTS ] (eca-control) command: cop-select 1 <496>
[EIAM ] (eca-control) - <497>
[OBJECTS ] (eca-control) command: copp-select 1 <498>
[EIAM ] (eca-control) - <499>

---------------------------------CUT OUT SECTION
HERE-----------------------------------------------------------

[OBJECTS ] (eca-control) command: copp-select 1 <16469>
[EIAM ] (eca-control) - <16470>
[OBJECTS ] (eca-control) command: copp-set 70.000000000000000000 <16471>
[EIAM ] (eca-control) - <16472>
[OBJECTS ] (eca-control) command: c-select osc1 <16473>
[EIAM ] (eca-control) - <16474>
[OBJECTS ] (eca-control) command: cop-select 1 <16475>
[EIAM ] (eca-control) - <16476>
[OBJECTS ] (eca-control) command: copp-select 1 <16477>
[EIAM ] (eca-control) - <16478>
[OBJECTS ] (eca-control) command: copp-set 69.000000000000000000 <16479>
[EIAM ] (eca-control) - <16480>
[OBJECTS ] (eca-control) command: c-select osc1 <16481>
[EIAM ] (eca-control) - <16482>
[OBJECTS ] (eca-control) command: cop-select 1 <16483>
[EIAM ] (eca-control) - <16484>
[OBJECTS ] (eca-control) command: copp-select 1 <16485>
[EIAM ] (eca-control) - <16486>
[OBJECTS ] (eca-control) command: copp-set 68.000000000000000000 <16487>
[EIAM ] (eca-control) - <16488>
[OBJECTS ] (eca-control) command: c-select osc1 <16489>
[EIAM ] (eca-control) - <16490>
[OBJECTS ] (eca-control) command: cop-select 1 <16491>
[EIAM ] (eca-control) - <16492>
[OBJECTS ] (eca-control) command: copp-select 1 <16493>
[EIAM ] (eca-control) - <16494>
[OBJECTS ] (eca-control) command: copp-set 67.000000000000000000 <16495>
[EIAM ] (eca-control) - <16496>
[OBJECTS ] (eca-control) command: c-select osc1 <16497>
[EIAM ] (eca-control) - <16498>
[OBJECTS ] (eca-control) command: cop-select 1 <16499>
[EIAM ] (eca-control) - <16500>
[OBJECTS ] (eca-control) command: copp-select 1 <16501>
[EIAM ] (eca-control) - <16502>
[OBJECTS ] (eca-control) command: copp-set 66.000000000000000000 <16503>
[EIAM ] (eca-control) - <16504>
[OBJECTS ] (eca-control) command: c-select osc1 <16505>
[EIAM ] (eca-control) - <16506>
[OBJECTS ] (eca-control) command: cop-select 1 <16507>
[EIAM ] (eca-control) - <16508>
[OBJECTS ] (eca-control) command: copp-select 1 <16509>
[EIAM ] (eca-control) - <16510>
[OBJECTS ] (eca-control) command: copp-set 65.000000000000000000 <16511>
[EIAM ] (eca-control) - <16512>
[OBJECTS ] (eca-control) command: c-select osc1 <16513>
[EIAM ] (eca-control) - <16514>
[OBJECTS ] (eca-control) command: cop-select 1 <16515>
[EIAM ] (eca-control) - <16516>
[OBJECTS ] (eca-control) command: copp-select 1 <16517>
[EIAM ] (eca-control) - <16518>
[OBJECTS ] (eca-control) command: copp-set 64.000000000000000000 <16519>
[EIAM ] (eca-control) - <16520>
[OBJECTS ] (eca-control) command: c-select osc1 <16521>
[EIAM ] (eca-control) - <16522>
[OBJECTS ] (eca-control) command: cop-select 1 <16523>
[EIAM ] (eca-control) - <16524>
[OBJECTS ] (eca-control) command: copp-select 1 <16525>
[EIAM ] (eca-control) - <16526>
[OBJECTS ] (eca-control) command: copp-set 63.000000000000000000 <16527>
[EIAM ] (eca-control) - <16528>
[OBJECTS ] (eca-control) command: c-select osc1 <16529>
[EIAM ] (eca-control) - <16530>
[OBJECTS ] (eca-control) command: cop-select 1 <16531>
[EIAM ] (eca-control) - <16532>
[OBJECTS ] (eca-control) command: copp-select 1 <16533>
[EIAM ] (eca-control) - <16534>
[OBJECTS ] (eca-control) command: copp-set 62.000000000000000000 <16535>
[EIAM ] (eca-control) - <16536>
[OBJECTS ] (eca-control) command: c-select osc1 <16537>
[EIAM ] (eca-control) - <16538>
[OBJECTS ] (eca-control) command: cop-select 1 <16539>
[EIAM ] (eca-control) - <16540>
[OBJECTS ] (eca-control) command: copp-select 1 <16541>
[EIAM ] (eca-control) - <16542>
[OBJECTS ] (eca-control) command: copp-set 61.000000000000000000 <16543>
[EIAM ] (eca-control) - <16544>
[OBJECTS ] (eca-control) command: c-select osc1 <16545>
[EIAM ] (eca-control) - <16546>
[OBJECTS ] (eca-control) command: cop-select 1 <16547>
[EIAM ] (eca-control) - <16548>
[OBJECTS ] (eca-control) command: copp-select 1 <16549>
[EIAM ] (eca-control) - <16550>
[OBJECTS ] (eca-control) command: copp-set 60.000000000000000000 <16551>
[EIAM ] (eca-control) - <16552>
[OBJECTS ] (eca-control) command: engine-status <16553>
[EIAM ] (eca-control) s stopped <16554>
[OBJECTS ] (eca-control) command: stop <16555>
[EIAM ] (eca-control) - <16556>
[OBJECTS ] (eca-control) command: cs-disconnect <16557>
[SYSTEM ] (eca-control-base) Waiting for engine thread to exit. <16558>
[SYSTEM ] (eca-engine) ecasound_queue: exit! <16559>
[SYSTEM ] (audioio_jack_manager) driver exit <16560>
[SYSTEM ] (audioio_jack_manager) exit request in exec <16561>
[SYSTEM ] (audioio_jack_manager) jack_deactivate() <16562>
[SYSTEM ] (eca-engine) Signaling exit <16563>
[OBJECTS ] (eca-engine) Engine state when finishing: 4 <16564>
[SYSTEM ] (eca-control-base) Engine thread has exited succesfully. <16565>
[SYSTEM ] (eca-engine) ECA_ENGINE destructor <16566>
[SUBSYST.] (eca-engine) Engine exiting <16567>
[INFO ] (eca-control-objects) Disconnecting chainsetup: "waveup_cs".
<16568>
[SYSTEM ] (eca-chainsetup) Closing chainsetup "waveup_cs" <16569>
[SYSTEM ] (eca-chainsetup) Closing audio device/file "null". <16570>
[OBJECTS ] (audioio-db-client) close null. <16571>
[SYSTEM ] (eca-chainsetup) Closing audio device/file "jack_generic".
<16572>
[SYSTEM ] (audioio_jack) close <16573>
[SYSTEM ] (audioio_jack_manager) unregister all jack ports for client 1
<16574>
[SYSTEM ] (audioio_jack_manager) close for client 1 <16575>
[SUBSYST.] (eca-session) Chainsetup disconnected <16576>
[EIAM ] (eca-control) - <16577>
[OBJECTS ] (eca-control) command: cop-status <16578>
[EIAM ] (eca-control) s ### Chain operator status (chainsetup
'waveup_cs') ###
Chain "osc1":
    1. Sine Oscillator (Freq:control, Amp:control): [1] Frequency
60.00000000000000000, [2] Amplitude 5.00000000000000000
    2. Amplify: [1] amp-% 25.87190270423889160 <16579>
[OBJECTS ] (eca-control) command: quit <16580>
[EIAM ] (eca-control) - <16581>
[SYSTEM ] (eca-control) ECA_CONTROL destructor <16582>
[SYSTEM ] (eca-chainsetup) ECA_CHAINSETUP destructor! <16583>
[OBJECTS ] (eca-chainsetup) Deleting chain "default". <16584>
[SYSTEM ] (eca-chain) CHAIN destructor! <16585>
[SYSTEM ] (audioio-db-server) destructor <16586>
[SYSTEM ] (eca-chainsetup) ECA_CHAINSETUP destructor! <16587>
[OBJECTS ] (eca-chainsetup) Deleting chain "osc1". <16588>
[SYSTEM ] (eca-chain) CHAIN destructor! <16589>
[OBJECTS ] (eca-chainsetup) Deleting audio db-client "null". <16590>
[OBJECTS ] (audioio-db-client) destructor null. <16591>
[SYSTEM ] (audioio-db-server) unregister_client Null audio object. <16592>
[OBJECTS ] (eca-chainsetup) Deleting audio object "null". <16593>
[OBJECTS ] (eca-chainsetup) Deleting audio object "jack_generic". <16594>
[OBJECTS ] (eca-chainsetup) Deleting audio manager "jack". <16595>
[SYSTEM ] (audioio_jack_manager) destructor <16596>
[INFO ] (audioio_jack_manager) Connection closed! <16597>
[SYSTEM ] (audioio-db-server) destructor <16598>

CODE:

#include <stdio.h>
#include <unistd.h>
#include <ecasoundc.h>
#include <unistd.h> /*sleep */

//COMPILE: gcc -g -o example example.c `libecasoundc-config --cflags --lib`

int
main (int argc, char *argv[])
{

//start jack, omit this when starting jackd seperately
//system ("jackd -R -dalsa -dhw:0 -r44100 -p1024 -n2 2>&1 &");
sleep (3);
//ecasound stuff
  eci_init ();
  eci_command ("cs-add waveup_cs");

  //oscillator 1
  eci_command ("c-add osc1");
  eci_command ("ai-add null");
  eci_command ("ao-add jack_generic,osc1");
  eci_command ("cop-add -el:sine_fcac,0,0");
  eci_command ("copp-select 1");
  eci_command_float_arg ("copp-set", 440);
  eci_command ("copp-select 2");
  eci_command_float_arg ("copp-set", 5);
  eci_command ("cop-add -ea:150");
  eci_command ("ctrl-add -kos:1,25,50,1,0");
  eci_command ("ctrlp-select 4");
  eci_command_float_arg ("ctrlp-set", 1);

  eci_command ("cs-connect");
  eci_command ("start");
  usleep (500000);

  //connect jack outputs
  system ("jack_connect ecasound:osc1_1 alsa_pcm:playback_1");
  usleep (500000);

  while (1)
    {
      int i;

      for (i = 60; i <= 400; i++)
    {
          usleep(10000);
      eci_command ("c-select osc1");
      eci_command ("cop-select 1");
      eci_command ("copp-select 1");
      eci_command_float_arg ("copp-set", i);
    }
      for (i = 400; i >= 60;i--)
    {
          usleep(10000);
      eci_command ("c-select osc1");
      eci_command ("cop-select 1");
      eci_command ("copp-select 1");
      eci_command_float_arg ("copp-set", i);
    }

      eci_command ("engine-status");
      if (strcmp (eci_last_string (), "running") != 0) {
        puts ("ECASOUND STOPPED!");
    break;
      }
    }

  eci_command ("stop");
  eci_command ("cs-disconnect");
  eci_command ("cop-status");
  printf ("Chain operator status: %s", eci_last_string ());
  eci_cleanup ();

  return (0);
}

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Sat Sep 6 04:15:02 2008

This archive was generated by hypermail 2.1.8 : Sat Sep 06 2008 - 04:15:02 EEST