Hi August, this is fairly easy.
The functionality of flext is split into several classes, of which the most important are:
flext: This one only has static elements, providing basic functionality but nothing external-related flext_base: class for message externals flext_dsp: inherited from flext_base with DSP functions
If you only want to use flext threading you just need to inherit from the class flext. See flext_support.h (or the flext documentation on the website) for all the methods contained therein.
good luck, Thomas
----- Original Message ----- From: "august" august@alien.mur.at To: pd-list@iem.kug.ac.at Sent: Monday, May 05, 2003 4:19 PM Subject: [PD] flext, threading
Thomas,
is it possible to use the flext API as a wrapper for pthreads?
what I have is one class, the main class, called readanysf.cpp. in that is the FLEXT_HEADER(readanysf, flext_dsp).
this file then creates other c++ objects as container structures to play audio. Inside one of these (the one for playing mp3 streaming from the net, called ReadMadUrl.cpp), I'd like to start another thread. However, I couldn't figure out how (if possible) to set up the class so that it inherits properly from flext without it having to be a pd object itself.
At the moment I'm doing it with pthread calls directly. But, if possible, I'd like to use the flext API to try to keep things uniform.
Is this possible?
- august.
PD-list mailing list PD-list@iem.kug.ac.at http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list