panner: backwards compatibility, constrain pan-range in old sessions
authorRobin Gareus <robin@gareus.org>
Fri, 30 May 2014 01:54:15 +0000 (03:54 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 30 May 2014 01:54:15 +0000 (03:54 +0200)
fixes http://tracker.ardour.org/view.php?id=5823#c15686

This is only an issue when loading an old session
(pre 3.5.308 - actual change was 21ca6a10) for the first
time with newer ardour.
Saving and re-loading with ardour >= 3.5.308 fixed this as well.

libs/ardour/panner_shell.cc

index 064554eac65dab1bbf3e8b9f376b3e8afc7345a0..a4a9342816375ac7ea8b8e34d9ef8c7c366fc8bc 100644 (file)
@@ -233,6 +233,16 @@ PannerShell::set_state (const XMLNode& node, int version)
                                                _current_panner_uri = (*p)->descriptor.panner_uri;
                                                _panner_gui_uri = (*p)->descriptor.gui_uri;
 
+                                               if (_is_send) {
+                                                       if (!_panlinked) {
+                                                               _pannable_internal->set_panner(_panner);
+                                                       } else {
+                                                               _force_reselect = true;
+                                                       }
+                                               } else {
+                                                       _pannable_route->set_panner(_panner);
+                                               }
+
                                                if (_panner->set_state (**niter, version) == 0) {
                                                        return -1;
                                                }