Re: [ecasound] pyecasound issues

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

Subject: Re: [ecasound] pyecasound issues
From: Kai Vehmanen (k_AT_eca.cx)
Date: Wed Jan 30 2002 - 03:34:37 EET


On Wed, 30 Jan 2002, Kai Vehmanen wrote:

> 2. Python and RTDL_GLOBAL
[...]
> As mentioned some time ago on this list, python loads its dynamic modules
> without the RTDL_GLOBAL flag (starting from 1.5.2). In practise this means
> that ecasound is unable to load its own plugins. So ALSA, JACK and
> libaudiofile audio object types are not available from pyecasound. LADSPA

Ok, I just browsed through "What's new Python 2.2" documented, and ta-daa,
"it's now possible to set the flags used by dlopen() using the
sys.getdlopenflags() and sys.setdlopenflags()"! :)

I made a quick test program and it seems to work:

--cut--
import sys
import DLFCN

sys.setdlopenflags(DLFCN.RTLD_LAZY|DLFCN.RTLD_GLOBAL)

from pyeca import *

e = ECA_CONTROL_INTERFACE()
e.command("aio-register")
print e.last_string()
--cut--

This should print a list of audio objects including ALSA and JACK types.
Note that it's important that the setdlopenflags() is called _before_
importing pyeca.

-- 
 http://www.eca.cx
 Audio software for Linux!

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request_AT_wakkanet.fi>.


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

This archive was generated by hypermail 2b28 : Wed Jan 30 2002 - 03:25:14 EET