Well, contrary to your thoughts it is not ridiculous. Lets say that at
some point in my process chain I have a mute object. When it is engaged,
I zero the buffer. Then I set the IsZero flag on the buffer. The next
item in the chain is the fader control. It sees that the zero flag is
set, knows that multiplying by the gain won't change anything, and can
return immmediately. The next plugin is a reverb. It knows that even
though the input buffer is zero, it is going to be adding signal, so it
clears the IsZero flag and puts its output in the buffer (no need for a
+= in this case).
So the idea is not stupid. Whether or not it is worthwhile to pass
across the GMPI boundary is worth discussion, but dismissing it out of
hand is pointless and offensive.
Vincent Burel wrote:
----- Original Message ----- From: "Tim Hockin" <thockin@xxxxxxxxxx> To: <gmpi@xxxxxxxxxxxxx> Sent: Monday, June 02, 2003 8:57 PM Subject: [gmpi] Re: Topic 7: Audio packaging
What is this concept of IsZero() ?
If a plugin is smart, it can see that a buffer is 'silent' without
actually
needing the data. This saves the cost of filling the buffer, and possibly more, if the plugin can optimize away certain paths.
sorry, zero buffer does not exist in signal, this idea is ridiculous.
maybe it makes sens for the HostAudioSoftware to not send null signal to plug-in when the track is empty for example... but it's regarding host , and especially non real-time host. Nothing to do with plug-in.
Vincent Burel
---------------------------------------------------------------------- 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
-- Mike Berry Adobe Systems
---------------------------------------------------------------------- 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