<div class="gmail_quote">2009/6/25 Jan Weil <span dir="ltr"><<a href="mailto:jan.weil@web.de">jan.weil@web.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Thu, Jun 25, 2009 at 05:25:48AM +0200, Stefano D'Angelo wrote:<br>
> 2009/6/24 David Robillard <<a href="mailto:dave@drobilla.net">dave@drobilla.net</a>>:<br>
> > On Wed, 2009-06-24 at 17:55 +0200, Stefano D'Angelo wrote:<br>
> >> Hereby I propose some default paths which could be used, in the hope<br>
> >> that API authors lurking around here might want to recommend them and<br>
> >> host authors might want to use them:<br>
> >><br>
> >> LADSPA<br>
> >> Unix-like OSes with FHS/Unix-like filesystem layout:<br>
> >> /usr/lib/ladspa, /usr/local/lib/ladspa, ~/.ladspa<br>
> >> Windows: %PROGRAMFILES%\LADSPA, %APPDATA%\LADSPA<br>
> >> Mac OS X: /Library/Audio/Plug-Ins/LADSPA, ~/Library/Audio/Plug-Ins/LADSPA<br>
> >><br>
> >> DSSI<br>
> >> Unix-like OSes with FHS/Unix-like filesystem layout: /usr/lib/dssi,<br>
> >> /usr/local/lib/dssi, ~/.dssi<br>
> >> Windows: %PROGRAMFILES%\DSSI, %APPDATA%\DSSI<br>
> >> Mac OS X: /Library/Audio/Plug-Ins/DSSI, ~/Library/Audio/Plug-Ins/DSSI<br>
> >><br>
> >> LV2<br>
> >> Unix-like OSes with FHS/Unix-like filesystem layout: /usr/lib/lv2,<br>
> >> /usr/local/lib/lv2, ~/.lv2<br>
> >> Windows: %PROGRAMFILES%\LV2, %APPDATA%\LV2<br>
> >> Mac OS X: /Library/Audio/Plug-Ins/LV2, ~/Library/Audio/Plug-Ins/LV2<br>
> ><br>
> > Note the order matters for PATH-like variables such as these.<br>
><br>
> Apart from the "evaluate the path variable before using the default" I<br>
> don't see how the order should matter. Am I missing something?<br>
<br>
</div></div>I guess it might matter if you have multiple version of the same plugin<br>
installed, depending on how the application references the plugins.<br>
Ecasound, for example, uses LADSPA unique ids if I remember correctly,<br>
which means only one of the multiple versions will be usable. Which one<br>
that is probably depends on the order of the paths.</blockquote><div><br></div><div>That is bad of Ecasound, since ladspa.h says:</div><div><br></div><div><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 16px; white-space: pre-wrap; ">"Plugin types should be identified by file and label rather than by index or plugin name, which may be changed in new plugin versions."</span></div>
<div><br></div><div>In case of multiple occourrences, myabe it's better to check for stat()'s st_mtime to decide which one to load? However, I don't see any of such mechanisms officially specified anywhere (apart from the "<span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 16px; white-space: pre-wrap; ">If present, this should contain a colon-separated path indicating directories that should be searched <span class="Apple-style-span" style="font-family: arial; white-space: normal; font-size: 13px; "><span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 16px; white-space: pre-wrap; ">(in order) when loading plugin types." in ladspa.h, which really means nothing)</span>...</span></span></div>
<div><br></div><div>Stefano</div></div>