Mercurial > hg > svapp
diff audioio/AudioCallbackPlaySource.cpp @ 132:3b61a975b47e sv1-v1.3 sv1-v1.3rc1
* Updates for 1.3
author | Chris Cannam |
---|---|
date | Thu, 10 Jul 2008 12:50:56 +0000 |
parents | 883f7fc7fd34 |
children | 72495c4cd315 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Mon Jul 07 17:16:18 2008 +0000 +++ b/audioio/AudioCallbackPlaySource.cpp Thu Jul 10 12:50:56 2008 +0000 @@ -376,7 +376,9 @@ } } +#ifdef DEBUG_AUDIO_PLAY_SOURCE std::cerr << "play(" << startFrame << ") -> playback model "; +#endif startFrame = m_viewManager->alignReferenceToPlaybackFrame(startFrame); @@ -400,7 +402,9 @@ if (m_readBuffers) { for (size_t c = 0; c < getTargetChannelCount(); ++c) { RingBuffer<float> *rb = getReadRingBuffer(c); +#ifdef DEBUG_AUDIO_PLAY_SOURCE std::cerr << "reset ring buffer for channel " << c << std::endl; +#endif if (rb) rb->reset(); } } @@ -693,8 +697,8 @@ 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; +// 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)) {