|
From: Christian S. <sch...@li...> - 2012-03-12 15:28:20
|
On Sunday 11 March 2012 20:26:35 David Robillard wrote: > Because the host needs to know where all the files are to make session > archival possible. Yes, makes sense. > > Anyway, if you really need to enumerate all files, tell me, then I will > > patch libgig for this task. > > That would be great, thanks. Please update libgig and linuxsampler from svn. The EngineChannel class now has a method: String EngineChannel::InstrumentFileName(int index) additionally to the already existing, equal named method without argument. So calling this new method with argument zero is equivalent as calling the method without argument, that is it will return the file name of the "main" instrument file (e.g. "foo.gig"), where as calling the method with argument 1, 2, 3, ... will return the name of the respective extension file (e.g. "foo.gx01", "foo.gx02", "foo.gx03", ...). It will return an empty string if index is out of bounds (e.g. end of extension file list exceeded). Let me know if you need something else. CU Christian |