[music-dsp] C or C++ ?
warder at dlc.fi
Sun Apr 4 04:00:49 EDT 2004
The classic way to do this is to have your device as a class, and a
"factory" that can create the class dynamically. This also makes your
life easier when you're dumping your patches to disk. I've used that
approach for PWSynth which eventually made it look like (to the
programmer) as if the binary plugins and native kernel modules were one
and the same. The only difference was in the factory code.
>This kinda detaches from the not-so-wonderful-in-the-end idea I had where
>the plugin had its own struct to describe a virtual device, and another
>struct to describe instances of that device. Very messy, as I couldn't think
>of a way to describe something that doesn't exist but still has a presence
>(ie, to obtain a device name from a plugin w/o instantiating the device
More information about the music-dsp