diff options
author | Robin Gareus <robin@gareus.org> | 2016-10-13 16:04:28 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-13 16:04:28 +0200 |
commit | 215d88ac87aea8d9c30c86614c2ebe0f4bf57f20 (patch) | |
tree | 08d0f6b952a03a642d390a04daf5da8a4303b1fe /libs/ardour/uri_map.cc | |
parent | c09e4675957a450479e58af1e51e90a860b6bb34 (diff) |
Allow a LV2 plugin to mark the session dirty
If some plugin-internal state changes (GUI <> Plugin e.g. load a sample)
no ports change and the host does not know that the plugin state has
changed. The session may be closed without save.
This is a prototype using an ardour.org URI, pending upstream lv2plug.in
Diffstat (limited to 'libs/ardour/uri_map.cc')
-rw-r--r-- | libs/ardour/uri_map.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/ardour/uri_map.cc b/libs/ardour/uri_map.cc index 4bdb405a0e..c8af409506 100644 --- a/libs/ardour/uri_map.cc +++ b/libs/ardour/uri_map.cc @@ -70,6 +70,7 @@ URIMap::URIDs::init(URIMap& uri_map) auto_end = uri_map.uri_to_id(LV2_AUTOMATE_URI__end); auto_parameter = uri_map.uri_to_id(LV2_AUTOMATE_URI__parameter); auto_value = uri_map.uri_to_id(LV2_AUTOMATE_URI__value); + state_Dirty = uri_map.uri_to_id("http://ardour.org/lv2/state#Dirty"); // XXX http://lv2plug.in/ns/ext/state/#dirty #endif } |