[gmpi] Re: lost-n-found #3 parameter stuff

On Thu, Oct 21, 2004 at 07:41:41PM +0100, Steve Harris wrote:
> > Well, hosts that *DO* bundling will get it right.  Hosts that don't do
> > bundling will behave just like they do today.  And you get this in
> > exchange for a plugin setting one flag on a parameter.
> 
> Its just not that simple. What about plugins that want to save something
> special, they wont be able to work with host that want to serialise. If
> you provide the mode general mechanism they cna save hatever they want. We
> allready havea mechanism to allow plugins to serialise thier state, just
> allow it to include whole files and it will work.

Plugins that want to serialize any old thing can ALREADY DO THAT
(according to the requirements) withopaque data.

What I'm asking for is the ability to do something which is fairly common
(importing a file of some sort into a session) in a far simpler way.  The
plugin just has to indoicate that a file is intended to be saved with the
session.  If the host wants to support session-local files, then it is
really easy.

Now, maybe I'm just not grokking what you're arguing for with "serializing
into a directory" so let me make a specific hypothetical case so you can
see what I mean.  Then, if I'm still missing what you're saying, you can
do the same.

I have a project. All it's project data is in a dir called ~/mysong.
I instantiate a convolution processor into my project.
This convolver has a filename parameter of the impulse to load.
This filename parameter is marked as PROJECT_LOCAL.
I load /foo/bar/impulse.wav into that parameter
The host sees this, and copies /foo/bar/impulse.wav to ~/mysong

The result is that the plugin did not need to do any extra work, and the
user got a big benefit.  Some hosts do not support 'project folders'.
They won't use this.  Nothing will get any worse.

> But what if the plugins needs a random selection of the files its loaded
> (eg. a sampler)?

Each filename parameter is flagged.  Or did I miss the point of the
question?


----------------------------------------------------------------------
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: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: