changeset 266:52ef51ba9a74

* Reduce time stretcher to one channel when overload occurs
author Chris Cannam
date Mon, 07 Jul 2008 16:49:53 +0000
parents d55e4c0f7d9e
children c452d8a7b770
files main/MainWindow.cpp main/MainWindow.h
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Jun 18 15:53:23 2008 +0000
+++ b/main/MainWindow.cpp	Mon Jul 07 16:49:53 2008 +0000
@@ -3265,6 +3265,17 @@
 }
 
 void
+MainWindow::audioTimeStretchMultiChannelDisabled()
+{
+    static bool shownOnce = false;
+    if (shownOnce) return;
+    QMessageBox::information
+        (this, tr("Audio processing overload"),
+         tr("<b>Overloaded</b><p>Audio playback speed processing has been reduced to a single channel, due to a processing overload."));
+    shownOnce = true;
+}
+
+void
 MainWindow::layerRemoved(Layer *layer)
 {
     setupExistingLayersMenus();
--- a/main/MainWindow.h	Wed Jun 18 15:53:23 2008 +0000
+++ b/main/MainWindow.h	Mon Jul 07 16:49:53 2008 +0000
@@ -95,6 +95,7 @@
 
     virtual void sampleRateMismatch(size_t, size_t, bool);
     virtual void audioOverloadPluginDisabled();
+    virtual void audioTimeStretchMultiChannelDisabled();
 
     virtual void toolNavigateSelected();
     virtual void toolSelectSelected();