diff main/MainWindow.cpp @ 54:ec77936c268e

* Add system-specific LADSPA and DSSI plugin paths (for OS/X and Windows) * Add ability to open more than one audio file at once from the command line * Add plugin input source selection (with some caveats) * Show name of file being decoded in Ogg/mp3 decode progress dialog
author Chris Cannam
date Thu, 12 Oct 2006 14:56:28 +0000
parents 94f1c2747de4
children ca1e3f5657d5
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed Oct 11 16:18:51 2006 +0000
+++ b/main/MainWindow.cpp	Thu Oct 12 14:56:28 2006 +0000
@@ -2282,9 +2282,9 @@
 }
 
 bool
-MainWindow::openSomeFile(QString path)
+MainWindow::openSomeFile(QString path, AudioFileOpenMode mode)
 {
-    if (openAudioFile(path)) {
+    if (openAudioFile(path, mode)) {
 	return true;
     } else if (openSessionFile(path)) {
 	return true;
@@ -2993,15 +2993,17 @@
         }
     }
 
-    bool ok = factory->getConfigurationForTransform(transform,
-                                                    candidateInputModels,
-                                                    context,
-                                                    configurationXml,
-                                                    m_playSource);
-    if (!ok) return;
+    Model *inputModel = factory->getConfigurationForTransform(transform,
+                                                              candidateInputModels,
+                                                              context,
+                                                              configurationXml,
+                                                              m_playSource);
+    if (!inputModel) return;
+
+    std::cerr << "Input model is " << inputModel << " \"" << inputModel->objectName().toStdString() << std::endl;
 
     Layer *newLayer = m_document->createDerivedLayer(transform,
-                                                     m_document->getMainModel(),
+                                                     inputModel,
                                                      context,
                                                      configurationXml);