comparison view/ViewManager.cpp @ 694:ad12e428785b tonioni

Merge from default branch
author Chris Cannam
date Tue, 03 Dec 2013 17:58:40 +0000
parents 917039d333bb d8fc9659a206
children 084fd76deb89
comparison
equal deleted inserted replaced
688:212644efa523 694:ad12e428785b
452 } 452 }
453 453
454 void 454 void
455 ViewManager::playStatusChanged(bool /* playing */) 455 ViewManager::playStatusChanged(bool /* playing */)
456 { 456 {
457 #ifdef DEBUG_VIEW_MANAGER
458 cerr << "ViewManager::playStatusChanged" << endl;
459 #endif
457 checkPlayStatus(); 460 checkPlayStatus();
458 } 461 }
459 462
460 void 463 void
461 ViewManager::checkPlayStatus() 464 ViewManager::checkPlayStatus()
481 484
482 QTimer::singleShot(20, this, SLOT(checkPlayStatus())); 485 QTimer::singleShot(20, this, SLOT(checkPlayStatus()));
483 486
484 } else { 487 } else {
485 488
486 QTimer::singleShot(100, this, SLOT(checkPlayStatus()));
487
488 if (m_lastLeft != 0.0 || m_lastRight != 0.0) { 489 if (m_lastLeft != 0.0 || m_lastRight != 0.0) {
489 emit outputLevelsChanged(0.0, 0.0); 490 emit outputLevelsChanged(0.0, 0.0);
490 m_lastLeft = 0.0; 491 m_lastLeft = 0.0;
491 m_lastRight = 0.0; 492 m_lastRight = 0.0;
492 } 493 }
493 494
494 #ifdef DEBUG_VIEW_MANAGER 495 #ifdef DEBUG_VIEW_MANAGER
495 // cerr << "ViewManager::checkPlayStatus: Not playing" << endl; 496 cerr << "ViewManager::checkPlayStatus: Not playing" << endl;
496 #endif 497 #endif
497 } 498 }
498 } 499 }
499 500
500 bool 501 bool