comparison audioio/AudioCallbackPlaySource.cpp @ 92:792bca285459

...
author Chris Cannam
date Fri, 08 Feb 2008 17:54:49 +0000
parents 9fc4b256c283
children 737b373246b5
comparison
equal deleted inserted replaced
91:9fc4b256c283 92:792bca285459
593 RealTime end = RealTime::frame2RealTime(m_lastModelEndFrame, sourceRate); 593 RealTime end = RealTime::frame2RealTime(m_lastModelEndFrame, sourceRate);
594 594
595 MultiSelection::SelectionList selections = m_viewManager->getSelections(); 595 MultiSelection::SelectionList selections = m_viewManager->getSelections();
596 MultiSelection::SelectionList::const_iterator i; 596 MultiSelection::SelectionList::const_iterator i;
597 597
598 // these could be cached from one call to the next, if the 598 // These could be cached from one call to the next, if the
599 // selection has not changed... but some of the work would still 599 // selection has not changed... but some of the work would still
600 // need to be done because the playback model may have changed 600 // need to be done because the playback model may have changed.
601
602 // Currently, we know that this method is only ever called from a
603 // single thread (the GUI thread), so we could be nasty and
604 // maintain these as statics to avoid re-creating them...
601 605
602 std::vector<RealTime> rangeStarts; 606 std::vector<RealTime> rangeStarts;
603 std::vector<RealTime> rangeDurations; 607 std::vector<RealTime> rangeDurations;
604 608
605 int inRange = 0; 609 int inRange = 0;