Steve said:
On Tue, May 27, 2003 at 12:51:52PM -0700, Chris Grigg wrote:>One thing that (I dont think) has been touched on is wether plugins should >be able to tell if some of its inputs are left unconnected, and wether the >plugin should get a buffer of 0.0's on that input, or NULL (or >requivalent). > >- Steve
Null buffer ptr would be the simplest, eh?
No, the simplest sound be that you still get passed a buffer of 0.0's, but you have a function call to tell if the port is connected or not.
That saves you writing the condition (and multiple inner loops) to detect it if you dont care, I doubt this will be used for optimisation, its more likly to be used for plugins that change thier behaviour depending on what in/outputs are connected, eg. reverbs that do differnt stuff when they have 1 or 2 inputs of a stereo pair connected.
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe