# HG changeset patch # User Chris Cannam # Date 1212748370 0 # Node ID ab861544f9981128a4910ee45b1e314852a89eae # Parent 087662afe778f40304799b3d755ad8174290d606 * 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 diff -r 087662afe778 -r ab861544f998 audioio/AudioCallbackPlaySource.cpp --- 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;