diff 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
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Oct 04 11:01:39 2006 +0000
+++ b/main/MainWindow.cpp	Wed Oct 04 11:54:32 2006 +0000
@@ -161,6 +161,8 @@
 
     connect(m_playSource, SIGNAL(sampleRateMismatch(size_t, size_t, bool)),
 	    this,           SLOT(sampleRateMismatch(size_t, size_t, bool)));
+    connect(m_playSource, SIGNAL(audioOverloadPluginDisabled()),
+            this,           SLOT(audioOverloadPluginDisabled()));
 
     m_fader = new Fader(frame, false);
 
@@ -3139,6 +3141,14 @@
 }
 
 void
+MainWindow::audioOverloadPluginDisabled()
+{
+    QMessageBox::information
+        (this, tr("Audio processing overload"),
+         tr("Audio effects plugin auditioning has been disabled\ndue to a processing overload."));
+}
+
+void
 MainWindow::layerAdded(Layer *layer)
 {
 //    std::cerr << "MainWindow::layerAdded(" << layer << ")" << std::endl;