From 22a9dc0354eb1eb6b764b57d88561879c7731600 Mon Sep 17 00:00:00 2001
From: David Robillard
The motivating idea behind this extension is that all details of file -management must be handled by the host in whatever way is most appropriate for -that host. Plugins MUST NOT make any assumption about filesystem locations -beyond what is explicitly guaranteed by this extension.
+management MUST be handled by the host in whatever way is most appropriate for +that host, since hosts may have very different requirements. Plugins MUST NOT +make any assumption about filesystem locations beyond what is explicitly +guaranteed by this extension. -To create a new file, plugins request a filename from the host. This way, +
To create a new file, plugins request a filename from the host. This way, the host is aware of files used by the plugin and can use an appropriate location for them that the plugin alone could not know (e.g. using an appropriate disk volume for recording).
-Plugins may also use pre-existing files from elsewhere on the filesystem. +
Plugins MAY also use pre-existing files from elsewhere on the filesystem. Using the LV2 Persist extension, the host can save both these types of files in an appropriate way (by e.g. storing a link, or copying the file to export or archive a project).
@@ -64,17 +64,17 @@ or archive a project). files:fileSupport a lv2:Feature ; rdfs:label "Support for plugin-created files" ; lv2:documentation """ -This feature allows plugins to use pre-existing or newly created files, -and files them (e.g. across project saves and restores). If a host supports -this feature it passes a LV2_Files_FileSupport structure to the plugins -instantiate method as a feature (with URI -http://lv2plug.in/ns/ext/files#FileSupport). This structure provides -a function the plugin can use to create new file names. If and only if the -host supports this feature, the plugin MAY files and restore values of -type LV2_FILES_FILENAME.
+ +This feature allows plugins to use pre-existing or newly created files, and +persist them (e.g. across project saves and restores). If a host supports this +feature it passes a LV2_Files_FileSupport structure to the plugins instantiate +method as a feature (with URI http://lv2plug.in/ns/ext/files#FileSupport). This +structure provides a function the plugin can use to create new file names. If +and only if the host supports this feature, the plugin MAY files and restore +values of type LV2_FILES_FILENAME.
A plugin SHOULD use this facility to create any new files it may need -(e.g. samples, waveforms for recording). Plugins MUST NOT expect their +(e.g. samples, waveforms for recording). Plugins MUST NOT expect their state to be correctly restored if they do not use this mechanism to create new files.
""" . @@ -82,12 +82,12 @@ create new files. files:FilePath a atom:AtomType ; rdfs:label "File Path" ; lv2:documentation """ -The full path to a file on the local filesystem. The format of a +The full path to a file on the local filesystem. The format of a files:filePath is a C string (escaped or otherwise restricted in whatever way -necessary for the system). This URI (http://lv2plug.in/ns/ext/files#FilePath), +necessary for the system). This URI (http://lv2plug.in/ns/ext/files#FilePath), mapped to an integer, should be used as thetype
parameter with
-the LV2 Persist extension to persist a file. When persisting a files:FilePath,
+the LV2 Persist extension to persist a file. When persisting a files:FilePath,
the plugin MUST NOT assume that the same path will be restored (i.e. the
-host MAY choose to store the file elsewhere). The plugin may, of course,
+host MAY choose to store the file elsewhere). The plugin may, of course,
assume that the actual contents of the file are equivalent when restored.
""" .
--
cgit v1.2.1