1
"""Wrapper module which loads pyecasound
2
(python module for Ecasound Control Interface).
4
To use C version of pyecasound, you have to enable global share of symbols.
6
Quote from python docs:
12
Set the flags used by the interpreter for dlopen() calls,
13
such as when the interpreter loads extension modules.
14
Among other things, this will enable a lazy resolving of symbols
15
when importing a module, if called as sys.setdlopenflags(0).
16
To share symbols across extension modules, call as
17
sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL).
18
Symbolic names for the flag modules can be either found in the dl module,
19
or in the DLFCN module. If DLFCN is not available,
20
it can be generated from /usr/include/dlfcn.h using the h2py script.
21
Availability: Unix. New in version 2.2.
26
Otherwise falling back to native python version (possibly slower float-handling).
31
if hasattr(sys, 'version_info'): # attribute available from python 2.0
32
if sys.version_info[1] >=2:
35
sys.setdlopenflags(dl.RTLD_LAZY|dl.RTLD_GLOBAL)
37
from pyecasound import *
43
sys.setdlopenflags(DLFCN.RTLD_LAZY|DLFCN.RTLD_GLOBAL)
45
from pyecasound import *
47
from ecacontrol import *
49
from ecacontrol import *
51
from ecacontrol import *