Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.cpp @ 99:cd5cbdecc82d sv1-v1.2
* rebuild range lists when model extended beyond previous end time -- this
avoids playback stopping abruptly when it reaches the point at which the
first tranche of progressive file load ended
author | Chris Cannam |
---|---|
date | Mon, 18 Feb 2008 10:14:58 +0000 |
parents | e177e6ee7c12 |
children | 8591a0a3d57e |
comparison
equal
deleted
inserted
replaced
98:b218f441302f | 99:cd5cbdecc82d |
---|---|
246 #ifdef DEBUG_AUDIO_PLAY_SOURCE | 246 #ifdef DEBUG_AUDIO_PLAY_SOURCE |
247 std::cerr << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << std::endl; | 247 std::cerr << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << std::endl; |
248 #endif | 248 #endif |
249 if (endFrame > m_lastModelEndFrame) { | 249 if (endFrame > m_lastModelEndFrame) { |
250 m_lastModelEndFrame = endFrame; | 250 m_lastModelEndFrame = endFrame; |
251 rebuildRangeLists(); | |
251 } | 252 } |
252 } | 253 } |
253 | 254 |
254 void | 255 void |
255 AudioCallbackPlaySource::removeModel(Model *model) | 256 AudioCallbackPlaySource::removeModel(Model *model) |