Mercurial > hg > svapp
changeset 568:022d6a9e6d75 3.0-integration
Merge from branch svg, and thus (in some subrepos) from levelpanwidget
author | Chris Cannam |
---|---|
date | Mon, 19 Dec 2016 16:34:38 +0000 |
parents | ce3818cd16c5 (current diff) b777379e70d8 (diff) |
children | 1cc23cee4ebf 150cadf9c5fe |
files | |
diffstat | 2 files changed, 17 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/audio/AudioCallbackPlaySource.cpp Wed Dec 14 11:56:34 2016 +0000 +++ b/audio/AudioCallbackPlaySource.cpp Mon Dec 19 16:34:38 2016 +0000 @@ -178,6 +178,9 @@ if (m_sourceSampleRate == 0) { + SVDEBUG << "AudioCallbackPlaySource::addModel: Source rate changing from 0 to " + << model->getSampleRate() << endl; + m_sourceSampleRate = model->getSampleRate(); srChanged = true; @@ -222,6 +225,9 @@ m_sourceSampleRate, false); } else { + SVDEBUG << "AudioCallbackPlaySource::addModel: Source rate changing from " + << m_sourceSampleRate << " to " << model->getSampleRate() << endl; + m_sourceSampleRate = model->getSampleRate(); srChanged = true; } @@ -317,9 +323,15 @@ m_models.erase(model); - if (m_models.empty()) { - m_sourceSampleRate = 0; - } + // I don't think we have to do this any more: if a new model is + // loaded at a different rate, we'll hit the non-conflicting path + // in addModel and the rate will be updated without problems; but + // if a new model is loaded at the rate that we were using for the + // last one, then we save work by not having reset this here + // +// if (m_models.empty()) { +// m_sourceSampleRate = 0; +// } sv_frame_t lastEnd = 0; for (std::set<Model *>::const_iterator i = m_models.begin();
--- a/framework/MainWindowBase.h Wed Dec 14 11:56:34 2016 +0000 +++ b/framework/MainWindowBase.h Mon Dec 19 16:34:38 2016 +0000 @@ -50,6 +50,8 @@ class CommandHistory; class QMenu; class AudioDial; +class LevelPanWidget; +class LevelPanToolButton; class QLabel; class QCheckBox; class PreferencesDialog;