diff audioio/AudioCallbackPlaySource.cpp @ 164:07d8dac78edc

* Activity log updates * Update range lists in play source when a new model is added * Fill cache with empty background in colour 3d plot
author Chris Cannam
date Fri, 27 Feb 2009 13:33:16 +0000
parents 2c158dd3b983
children f6a8fc35df93
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Fri Feb 27 12:55:34 2009 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Fri Feb 27 13:33:16 2009 +0000
@@ -223,6 +223,8 @@
 	}
     }
 
+    rebuildRangeLists();
+
     m_mutex.unlock();
 
     m_audioGenerator->setTargetChannelCount(getTargetChannelCount());
@@ -285,9 +287,13 @@
     size_t lastEnd = 0;
     for (std::set<Model *>::const_iterator i = m_models.begin();
 	 i != m_models.end(); ++i) {
-//	std::cout << "AudioCallbackPlaySource::removeModel(" << model << "): checking end frame on model " << *i << std::endl;
+#ifdef DEBUG_AUDIO_PLAY_SOURCE
+	std::cout << "AudioCallbackPlaySource::removeModel(" << model << "): checking end frame on model " << *i << std::endl;
+#endif
 	if ((*i)->getEndFrame() > lastEnd) lastEnd = (*i)->getEndFrame();
-//	std::cout << "(done, lastEnd now " << lastEnd << ")" << std::endl;
+#ifdef DEBUG_AUDIO_PLAY_SOURCE
+	std::cout << "(done, lastEnd now " << lastEnd << ")" << std::endl;
+#endif
     }
     m_lastModelEndFrame = lastEnd;