Mercurial > hg > svapp
comparison audioio/AudioCallbackPlaySource.cpp @ 417:d62a622a0e40 tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 10 Nov 2014 09:20:33 +0000 |
parents | b65ee5c4f8bc |
children | 8d2112977aa0 dee4aceb131c |
comparison
equal
deleted
inserted
replaced
412:c1b2b8b84165 | 417:d62a622a0e40 |
---|---|
397 } | 397 } |
398 | 398 |
399 void | 399 void |
400 AudioCallbackPlaySource::play(int startFrame) | 400 AudioCallbackPlaySource::play(int startFrame) |
401 { | 401 { |
402 if (!m_sourceSampleRate) { | |
403 cerr << "AudioCallbackPlaySource::play: No source sample rate available, not playing" << endl; | |
404 return; | |
405 } | |
406 | |
402 if (m_viewManager->getPlaySelectionMode() && | 407 if (m_viewManager->getPlaySelectionMode() && |
403 !m_viewManager->getSelections().empty()) { | 408 !m_viewManager->getSelections().empty()) { |
404 | 409 |
405 SVDEBUG << "AudioCallbackPlaySource::play: constraining frame " << startFrame << " to selection = "; | 410 SVDEBUG << "AudioCallbackPlaySource::play: constraining frame " << startFrame << " to selection = "; |
406 | 411 |