Subject: Re: [ecasound] Re: pyeca questions
From: janne halttunen (janne_AT_fbn.homeip.net)
Date: Tue Aug 24 2004 - 12:07:20 EEST
On Mon, 23 Aug 2004 18:19:42 -0400
Paul Winkler <pw_lists_AT_slinkp.com> wrote:
> On Wed, Jun 30, 2004 at 08:43:28AM +0300, janne halttunen wrote:
> > On Tue, 29 Jun 2004 18:33:33 -0400
> > Paul Winkler <pw_lists_AT_slinkp.com> wrote:
> > > another q:
> > > if a command returns a string in ecasound -c, should the same
> > > command return a string to python when invoked via .command()?
> > > I seem to always get None from all calls to .command().
> > You can get the result from the .last_string method of the object.
> Doesn't seem so :-(
> I am logging .last_string() after EVERY command in my script
> and usually there is no output. So far the only command I've tried
> that actually causes last_string() to work is cs-status.
> For examples, cs-get-position-samples leaves an empty last_string.
first get the return value type with method "last_type", then value with methods ranging from "last_float" to "last_string_list"..
this is why wrappers around pyeca are recommended.
> Hmm, ecacontrol seems to be pretty broken here, scripts that
> run with pyeca.ECA_CONTROL_INTERFACE() will disconnect
> from the engine with ecacontrol.ECA_CONTROL_INTERFACE().
is there simple example?
This archive was generated by hypermail 2b28 : Tue Aug 24 2004 - 12:07:08 EEST