# HG changeset patch # User Chris Cannam # Date 1202493289 0 # Node ID 792bca285459ae6eae2614fcb8e2f8d247522a2f # Parent 9fc4b256c283f09255918d87a4d5e05afb061a82 ... diff -r 9fc4b256c283 -r 792bca285459 audioio/AudioCallbackPlaySource.cpp --- 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 rangeStarts; std::vector rangeDurations;