comparison main/MainWindow.cpp @ 42:c0ae41c72421

* Bypass auditioning plugin on xrun
author Chris Cannam
date Wed, 04 Oct 2006 11:54:32 +0000
parents fbd7a497fd89
children 47bff9f88882
comparison
equal deleted inserted replaced
41:fbd7a497fd89 42:c0ae41c72421
159 159
160 m_playSource = new AudioCallbackPlaySource(m_viewManager); 160 m_playSource = new AudioCallbackPlaySource(m_viewManager);
161 161
162 connect(m_playSource, SIGNAL(sampleRateMismatch(size_t, size_t, bool)), 162 connect(m_playSource, SIGNAL(sampleRateMismatch(size_t, size_t, bool)),
163 this, SLOT(sampleRateMismatch(size_t, size_t, bool))); 163 this, SLOT(sampleRateMismatch(size_t, size_t, bool)));
164 connect(m_playSource, SIGNAL(audioOverloadPluginDisabled()),
165 this, SLOT(audioOverloadPluginDisabled()));
164 166
165 m_fader = new Fader(frame, false); 167 m_fader = new Fader(frame, false);
166 168
167 m_playSpeed = new AudioDial(frame); 169 m_playSpeed = new AudioDial(frame);
168 m_playSpeed->setMinimum(0); 170 m_playSpeed->setMinimum(0);
3137 3139
3138 updateDescriptionLabel(); 3140 updateDescriptionLabel();
3139 } 3141 }
3140 3142
3141 void 3143 void
3144 MainWindow::audioOverloadPluginDisabled()
3145 {
3146 QMessageBox::information
3147 (this, tr("Audio processing overload"),
3148 tr("Audio effects plugin auditioning has been disabled\ndue to a processing overload."));
3149 }
3150
3151 void
3142 MainWindow::layerAdded(Layer *layer) 3152 MainWindow::layerAdded(Layer *layer)
3143 { 3153 {
3144 // std::cerr << "MainWindow::layerAdded(" << layer << ")" << std::endl; 3154 // std::cerr << "MainWindow::layerAdded(" << layer << ")" << std::endl;
3145 // setupExistingLayersMenu(); 3155 // setupExistingLayersMenu();
3146 updateMenuStates(); 3156 updateMenuStates();