diff audioio/AudioCallbackPlaySource.cpp @ 92:792bca285459

...
author Chris Cannam
date Fri, 08 Feb 2008 17:54:49 +0000
parents 9fc4b256c283
children 737b373246b5
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp	Fri Feb 08 17:51:15 2008 +0000
+++ b/audioio/AudioCallbackPlaySource.cpp	Fri Feb 08 17:54:49 2008 +0000
@@ -595,9 +595,13 @@
     MultiSelection::SelectionList selections = m_viewManager->getSelections();
     MultiSelection::SelectionList::const_iterator i;
 
-    // these could be cached from one call to the next, if the
+    // These could be cached from one call to the next, if the
     // selection has not changed... but some of the work would still
-    // need to be done because the playback model may have changed
+    // need to be done because the playback model may have changed.
+
+    // Currently, we know that this method is only ever called from a
+    // single thread (the GUI thread), so we could be nasty and
+    // maintain these as statics to avoid re-creating them...
 
     std::vector<RealTime> rangeStarts;
     std::vector<RealTime> rangeDurations;