comparison audioio/AudioCallbackPlaySource.cpp @ 96:e177e6ee7c12 sv1-v1.2pre5

* PortAudio playback fixes
author Chris Cannam
date Wed, 13 Feb 2008 15:49:26 +0000
parents 9cc9862333bd
children cd5cbdecc82d
comparison
equal deleted inserted replaced
95:dd6d0bc05030 96:e177e6ee7c12
707 #endif 707 #endif
708 708
709 if (!looping) { 709 if (!looping) {
710 if (inRange == m_rangeStarts.size()-1 && 710 if (inRange == m_rangeStarts.size()-1 &&
711 playing_t >= m_rangeStarts[inRange] + m_rangeDurations[inRange]) { 711 playing_t >= m_rangeStarts[inRange] + m_rangeDurations[inRange]) {
712 std::cerr << "Not looping, inRange " << inRange << " == rangeStarts.size()-1, playing_t " << playing_t << " >= m_rangeStarts[inRange] " << m_rangeStarts[inRange] << " + m_rangeDurations[inRange] " << m_rangeDurations[inRange] << " -- stopping" << std::endl;
712 stop(); 713 stop();
713 } 714 }
714 } 715 }
715 716
716 if (playing_t < RealTime::zeroTime) playing_t = RealTime::zeroTime; 717 if (playing_t < RealTime::zeroTime) playing_t = RealTime::zeroTime;