Mercurial > hg > svapp
changeset 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 | dc1a360f2b69 |
children | 1ab4ac6b2fcb |
files | audioio/AudioCallbackPlaySource.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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; }