diff data/model/DenseTimeValueModel.cpp @ 391:5858cc462d0a

* Fix #1628781 changes to layer visibility and mute should use a command * Also use a command for changes to layer playback pan, gain, plugin settings * Refactor PlayParameterRepository to remove dependency on audioio from base * Fix failure to save play parameters for main model in session file
author Chris Cannam
date Thu, 13 Mar 2008 14:06:03 +0000
parents 3e6fee4e4257
children 33fca917c800
line wrap: on
line diff
--- a/data/model/DenseTimeValueModel.cpp	Thu Mar 13 12:41:20 2008 +0000
+++ b/data/model/DenseTimeValueModel.cpp	Thu Mar 13 14:06:03 2008 +0000
@@ -18,6 +18,11 @@
 
 DenseTimeValueModel::DenseTimeValueModel()
 {
-    PlayParameterRepository::getInstance()->addModel(this);
+    PlayParameterRepository::getInstance()->addPlayable(this);
+}
+
+DenseTimeValueModel::~DenseTimeValueModel()
+{
+    PlayParameterRepository::getInstance()->removePlayable(this);
 }