Mercurial > hg > svapp
changeset 9:e71385792d9d
* Add ffwd/rewind
* Abstract out MultiSelection
author | Chris Cannam |
---|---|
date | Wed, 08 Feb 2006 17:59:16 +0000 |
parents | 24b500216029 |
children | b6dc944128da |
files | audioio/AudioCallbackPlaySource.cpp |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Thu Feb 02 16:10:19 2006 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Wed Feb 08 17:59:16 2006 +0000 @@ -233,13 +233,13 @@ { if (m_viewManager->getPlaySelectionMode() && !m_viewManager->getSelections().empty()) { - ViewManager::SelectionList selections = m_viewManager->getSelections(); - ViewManager::SelectionList::iterator i = selections.begin(); + MultiSelection::SelectionList selections = m_viewManager->getSelections(); + MultiSelection::SelectionList::iterator i = selections.begin(); if (i != selections.end()) { if (startFrame < i->getStartFrame()) { startFrame = i->getStartFrame(); } else { - ViewManager::SelectionList::iterator j = selections.end(); + MultiSelection::SelectionList::iterator j = selections.end(); --j; if (startFrame >= j->getEndFrame()) { startFrame = i->getStartFrame(); @@ -392,8 +392,8 @@ return framePlaying; } - ViewManager::SelectionList selections = m_viewManager->getSelections(); - ViewManager::SelectionList::const_iterator i; + MultiSelection::SelectionList selections = m_viewManager->getSelections(); + MultiSelection::SelectionList::const_iterator i; i = selections.begin(); size_t rangeStart = i->getStartFrame();