Mercurial > hg > svapp
diff 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 |
line wrap: on
line diff
--- a/audioio/AudioCallbackPlaySource.cpp Tue Sep 09 16:36:21 2014 +0100 +++ b/audioio/AudioCallbackPlaySource.cpp Mon Nov 10 09:20:33 2014 +0000 @@ -399,6 +399,11 @@ void AudioCallbackPlaySource::play(int startFrame) { + if (!m_sourceSampleRate) { + cerr << "AudioCallbackPlaySource::play: No source sample rate available, not playing" << endl; + return; + } + if (m_viewManager->getPlaySelectionMode() && !m_viewManager->getSelections().empty()) {