Mercurial > hg > svapp
diff audioio/AudioCallbackPlaySource.cpp @ 122:ab861544f998
* Comment out problematic test -- sincerequest_t always seemed to be
zero when this line was reached, so the pointer was often getting stuck
if you asked to play a loop that had been drawn to the left of the
position the pointer was at when you then tried to play it
author | Chris Cannam |
---|---|
date | Fri, 06 Jun 2008 10:32:50 +0000 |
parents | 52af71802ffd |
children | 4c9c04645685 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Wed Jun 04 16:09:04 2008 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Fri Jun 06 10:32:50 2008 +0000 @@ -672,12 +672,12 @@ RealTime playstart_t = RealTime::frame2RealTime(m_playStartFrame, sourceRate); if (playing_t < playstart_t) { -// std::cerr << "playing_t " << playing_t << " < playstart_t " -// << playstart_t << std::endl; - if (sincerequest_t > RealTime::zeroTime && + std::cerr << "playing_t " << playing_t << " < playstart_t " + << playstart_t << std::endl; + if (/*!!! sincerequest_t > RealTime::zeroTime && */ m_playStartedAt + latency_t + stretchlat_t < RealTime::fromSeconds(currentTime)) { -// std::cerr << "but we've been playing for long enough that I think we should disregard it (it probably results from loop wrapping)" << std::endl; + std::cerr << "but we've been playing for long enough that I think we should disregard it (it probably results from loop wrapping)" << std::endl; m_playStartFramePassed = true; } else { playing_t = playstart_t;