comparison audioio/AudioCallbackPlaySource.cpp @ 367:1e4fa2007e61 warnfix_no_size_t

Fix signal/slot name
author Chris Cannam
date Tue, 17 Jun 2014 17:00:26 +0100
parents 0876ea394902
children f747be6743ab
comparison
equal deleted inserted replaced
366:0876ea394902 367:1e4fa2007e61
253 253
254 if (buffersChanged || srChanged) { 254 if (buffersChanged || srChanged) {
255 emit modelReplaced(); 255 emit modelReplaced();
256 } 256 }
257 257
258 connect(model, SIGNAL(modelChanged(int, int)), 258 connect(model, SIGNAL(modelChangedWithin(int, int)),
259 this, SLOT(modelChanged(int, int))); 259 this, SLOT(modelChangedWithin(int, int)));
260 260
261 #ifdef DEBUG_AUDIO_PLAY_SOURCE 261 #ifdef DEBUG_AUDIO_PLAY_SOURCE
262 cout << "AudioCallbackPlaySource::addModel: awakening thread" << endl; 262 cout << "AudioCallbackPlaySource::addModel: awakening thread" << endl;
263 #endif 263 #endif
264 264
265 m_condition.wakeAll(); 265 m_condition.wakeAll();
266 } 266 }
267 267
268 void 268 void
269 AudioCallbackPlaySource::modelChanged(int , int endFrame) 269 AudioCallbackPlaySource::modelChangedWithin(int
270 { 270 #ifdef DEBUG_AUDIO_PLAY_SOURCE
271 #ifdef DEBUG_AUDIO_PLAY_SOURCE 271 startFrame
272 SVDEBUG << "AudioCallbackPlaySource::modelChanged(" << startFrame << "," << endFrame << ")" << endl; 272 #endif
273 , int endFrame)
274 {
275 #ifdef DEBUG_AUDIO_PLAY_SOURCE
276 SVDEBUG << "AudioCallbackPlaySource::modelChangedWithin(" << startFrame << "," << endFrame << ")" << endl;
273 #endif 277 #endif
274 if (endFrame > m_lastModelEndFrame) { 278 if (endFrame > m_lastModelEndFrame) {
275 m_lastModelEndFrame = endFrame; 279 m_lastModelEndFrame = endFrame;
276 rebuildRangeLists(); 280 rebuildRangeLists();
277 } 281 }
284 288
285 #ifdef DEBUG_AUDIO_PLAY_SOURCE 289 #ifdef DEBUG_AUDIO_PLAY_SOURCE
286 cout << "AudioCallbackPlaySource::removeModel(" << model << ")" << endl; 290 cout << "AudioCallbackPlaySource::removeModel(" << model << ")" << endl;
287 #endif 291 #endif
288 292
289 disconnect(model, SIGNAL(modelChanged(int, int)), 293 disconnect(model, SIGNAL(modelChangedWithin(int, int)),
290 this, SLOT(modelChanged(int, int))); 294 this, SLOT(modelChangedWithin(int, int)));
291 295
292 m_models.erase(model); 296 m_models.erase(model);
293 297
294 if (m_models.empty()) { 298 if (m_models.empty()) {
295 if (m_converter) { 299 if (m_converter) {
305 for (std::set<Model *>::const_iterator i = m_models.begin(); 309 for (std::set<Model *>::const_iterator i = m_models.begin();
306 i != m_models.end(); ++i) { 310 i != m_models.end(); ++i) {
307 #ifdef DEBUG_AUDIO_PLAY_SOURCE 311 #ifdef DEBUG_AUDIO_PLAY_SOURCE
308 cout << "AudioCallbackPlaySource::removeModel(" << model << "): checking end frame on model " << *i << endl; 312 cout << "AudioCallbackPlaySource::removeModel(" << model << "): checking end frame on model " << *i << endl;
309 #endif 313 #endif
310 if ((*i)->getEndFrame() > lastEnd) lastEnd = (*i)->getEndFrame(); 314 if ((*i)->getEndFrame() > lastEnd) {
315 lastEnd = (*i)->getEndFrame();
316 }
311 #ifdef DEBUG_AUDIO_PLAY_SOURCE 317 #ifdef DEBUG_AUDIO_PLAY_SOURCE
312 cout << "(done, lastEnd now " << lastEnd << ")" << endl; 318 cout << "(done, lastEnd now " << lastEnd << ")" << endl;
313 #endif 319 #endif
314 } 320 }
315 m_lastModelEndFrame = lastEnd; 321 m_lastModelEndFrame = lastEnd;