On Tue, 2012-03-06 at 08:18 +0100, Andreas Persson wrote: > On 2012-03-06 06:51, David Robillard wrote: > > On Sun, 2012-03-04 at 14:04 -0500, Edward Diehl wrote: > >> State restore works for gig, SF2 but not SFZ, which I think is a known > >> problem. > > > > Yes, this is because SFZ contains paths which need to be mapped. > > Unfortunately this means LinuxSampler is going to have to rewrite the > > SFZ file on save, but this is the only way to get properly > > archivable/portable sessions. > > It's also because there's a bug in LinuxSampler causing crashes as > pEngine pointer sometimes is null when the instrument loader thread > loads sfz or sf2 files. You fixed this for gig files with a simple > patch, but I'm working on a more thread safe fix for all engines.
Yeah, I never really did have a deep understanding of that one. > I don't know how much it matters, but note that a normal sfz file (one > you might download from Internet) uses relative paths to the samples. > The paths are relative to the location of the sfz file. (The fact that > we support absolute paths is in my opinion something that we can ignore > when saving the state - if the user has chosen to use absolute paths, he > has also chosen to create a non-portable session.) This could be an option (though technically the rule is the plugin must map all paths). It could be problematic if several sfz files share a directory and large set of samples and one particular sfz only uses a subset. I don't know if this is common. If a really painfully simple assumption like "the directory the .sfz is in, in its entirety, is the sfz and should be saved" actually works in 99% of cases, it's probably good enough. Otherwise you'd at least have to scan the sfz, and it seems a small step from scanning to rewriting it with modified paths. -dr ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Linuxsampler-devel mailing list Linuxsampler-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel