|
From: Nils T. <nil...@gm...> - 2015-01-15 23:13:10
|
Hi, because of bug #235 I'm trying to understand how the LV2 Plugin works. I'm a wannabe programmer but maybe I have found two things. 1. The function LV2_State_Status Restore() has the parameter flags in PluginLv2.h but rflags in .cpp. I think that's a typo?! Why is there actually a flags parameter when we want to retrieve it afterwards (or rflags when we don't use it). 2. LV2_State_Status Save() stores NS_LS "state-file" with flag LV2_STATE_IS_PORTABLE but http://lv2plug.in/doc/html/state_8h.html#afb5cc1033410d51fdcdbfdd09fc7d808 says "Portable values MUST NOT contain filenames." And two questions: 1. Why don't we store the absolute path? http://lv2plug.in/ns/ext/atom/#Path --> "effectively any Path sent to or received from a plugin instance MUST be absolute." 2. Why are the old MapPath and MakePath restored after saving and restoring the state? Best regards, Nils |