comparison audioio/AudioCallbackPlaySource.cpp @ 152:f0c47d8988bc

* Fix failure to play right to the end of files loaded from mp3 or ogg
author Chris Cannam
date Thu, 14 Jun 2007 13:49:30 +0000
parents 37cb005f7c40
children 98ba77e0d897
comparison
equal deleted inserted replaced
151:152619d379e0 152:f0c47d8988bc
221 } 221 }
222 222
223 void 223 void
224 AudioCallbackPlaySource::modelChanged(size_t startFrame, size_t endFrame) 224 AudioCallbackPlaySource::modelChanged(size_t startFrame, size_t endFrame)
225 { 225 {
226 // std::cerr << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << std::endl; 226 #ifdef DEBUG_AUDIO_PLAY_SOURCE
227 std::cerr << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << std::endl;
228 #endif
227 if (endFrame > m_lastModelEndFrame) m_lastModelEndFrame = endFrame; 229 if (endFrame > m_lastModelEndFrame) m_lastModelEndFrame = endFrame;
228 } 230 }
229 231
230 void 232 void
231 AudioCallbackPlaySource::removeModel(Model *model) 233 AudioCallbackPlaySource::removeModel(Model *model)