diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-13 15:50:05 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-06-13 15:50:05 +0000 |
commit | 961e25d90e94f0139f834913ffbac3c9886b7113 (patch) | |
tree | 0d86b793ac6a8a74595cb004e252ac9d8c851dcd /libs/ardour/pannable.cc | |
parent | cab3072f83bb2e959e5ece5e344c568caf474be6 (diff) |
reload alpha1-6 Pannable XML state so that panning of existing sessions should work again
git-svn-id: svn://localhost/ardour2/branches/3.0@9719 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/pannable.cc')
-rw-r--r-- | libs/ardour/pannable.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/ardour/pannable.cc b/libs/ardour/pannable.cc index 6dbb5005c2..fb890a5e34 100644 --- a/libs/ardour/pannable.cc +++ b/libs/ardour/pannable.cc @@ -230,6 +230,38 @@ Pannable::set_state (const XMLNode& root, int version) } else if ((*niter)->name() == Automatable::xml_node_name) { set_automation_xml_state (**niter, PanAzimuthAutomation); + + } else { + const XMLProperty* prop; + + /* old school (alpha1-6) XML info */ + + if ((*niter)->name() == pan_azimuth_control->name()) { + prop = (*niter)->property (X_("value")); + if (prop) { + pan_azimuth_control->set_value (atof (prop->value())); + } + } else if ((*niter)->name() == pan_width_control->name()) { + prop = (*niter)->property (X_("value")); + if (prop) { + pan_width_control->set_value (atof (prop->value())); + } + } else if ((*niter)->name() == pan_elevation_control->name()) { + prop = (*niter)->property (X_("value")); + if (prop) { + pan_elevation_control->set_value (atof (prop->value())); + } + } else if ((*niter)->name() == pan_frontback_control->name()) { + prop = (*niter)->property (X_("value")); + if (prop) { + pan_frontback_control->set_value (atof (prop->value())); + } + } else if ((*niter)->name() == pan_lfe_control->name()) { + prop = (*niter)->property (X_("value")); + if (prop) { + pan_lfe_control->set_value (atof (prop->value())); + } + } } } |