Mercurial > hg > svapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
121:087662afe778 | 122:ab861544f998 |
---|---|
670 | 670 |
671 if (!m_playStartFramePassed) { | 671 if (!m_playStartFramePassed) { |
672 RealTime playstart_t = RealTime::frame2RealTime(m_playStartFrame, | 672 RealTime playstart_t = RealTime::frame2RealTime(m_playStartFrame, |
673 sourceRate); | 673 sourceRate); |
674 if (playing_t < playstart_t) { | 674 if (playing_t < playstart_t) { |
675 // std::cerr << "playing_t " << playing_t << " < playstart_t " | 675 std::cerr << "playing_t " << playing_t << " < playstart_t " |
676 // << playstart_t << std::endl; | 676 << playstart_t << std::endl; |
677 if (sincerequest_t > RealTime::zeroTime && | 677 if (/*!!! sincerequest_t > RealTime::zeroTime && */ |
678 m_playStartedAt + latency_t + stretchlat_t < | 678 m_playStartedAt + latency_t + stretchlat_t < |
679 RealTime::fromSeconds(currentTime)) { | 679 RealTime::fromSeconds(currentTime)) { |
680 // 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; | 680 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; |
681 m_playStartFramePassed = true; | 681 m_playStartFramePassed = true; |
682 } else { | 682 } else { |
683 playing_t = playstart_t; | 683 playing_t = playstart_t; |
684 } | 684 } |
685 } else { | 685 } else { |