Re: large commit
"Kristian G. Kvilekval" <[email protected]>
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <1047943029.2847.126.camel@merrimack> |
The prefs.def should make it easier, but your point that there are plugin variables creeping into the main tree is valid. One thing that has always bothered me was that to understand what a plugin does, we need to load it (slowing down the startup). For example, to the know that vorbislmc processes ogg files, we load the plugin and call GetExtensions on it. In order to separate the plugins form the core code, I would think we need a plugin descriptor file. This would be loaded on main program startup and then load the plugin on demand when really needed. The file could also describe plugin variables. Look at the current prefs.def in base/include. You may define a tag ZINF_PREF(PluginTag, "default string") In the plugin you can call string v; m_pContext->prefs->GetPrefString(kPluginTagPref, v); On Mon, 2003-03-17 at 14:46, Robert Hart wrote: > On Sat, 2003-03-15 at 09:37, Kristian Kvilekval wrote: > > > My "preference" would be for a more structured preference file that > > could be used as a default preferences, current preferences, and also > > be used to generate the gtk option pane or even ncurses pane, etc. > > However this seemed to be a nice way to get rid of "declare preference > > in a file , declare default in another place" problem. Not that I am > > totally enamored of it. Shouldn't have an effect on the rest of the > > programmers. If I hear a lot of "boos", we can ditch it. > > I think for plugins to be true plugins, you need to be able to write one > without changin any existing zinf code. When I tried to write my own > plugin a few weeks ago, I got stuck on how to add preferences to it. > > AFAICT you can't without editing zinf proper, and even then it's not > obvious what to do. > > Rob > > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Zinf-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/zinf-devel -- email:[email protected] office:(805)893-4276 http://www.cs.ucsb.edu/~kris ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en