Mercurial > hg > svapp
diff audioio/AudioCallbackPlaySource.cpp @ 454:3e2a2ca24d90
Avoid going pop when setting play head to before time 0
author | Chris Cannam |
---|---|
date | Thu, 21 May 2015 15:31:12 +0100 |
parents | c48bc6ddfe17 |
children | ad998a2fe9e2 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Mon Apr 20 10:10:26 2015 +0100 +++ b/audioio/AudioCallbackPlaySource.cpp Thu May 21 15:31:12 2015 +0100 @@ -422,6 +422,9 @@ SVDEBUG << startFrame << endl; } else { + if (startFrame < 0) { + startFrame = 0; + } if (startFrame >= m_lastModelEndFrame) { startFrame = 0; }