Coding for ecasound
Nolan J. Darilek <nolan <at> thewordnerd.info>
2003-10-03 00:10:11 GMT
I've been working on a Ruby API and, while I've made lots of progress,
I'm running up against some issues.
Ecasound produces lots of messages, telling me that it's filling the
audio buffer, etc. However, the only ones I'm really interested in are
the ones that are the result of running my command. I want an eci
command method to block until it is completed, but unfortunately, I don't
know whenm a command is complete, and I think this is causing problems
for me, as I don't know which value to return and when to stop parsing
returned messages for the last command.
Here's an example:
ecasound ('h' for help)> start
4 21
Connecting chainsetup
2 56
(eca-chainsetup) 'rtlowlatency' buffering mode selected.
2 115
(eca-chainsetup) Audio object "null", mode "read".
(audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
2 124
(eca-chainsetup) Audio object "jack_alsa", mode "write".
(audio-io) Format: f32_le, channels 2, srate 44100, noninterleaved.
4 20
Chainsetup connected
(Continue reading)