diff main/MainWindow.cpp @ 46:47bff9f88882

* Add --no-audio option to avoid opening any audio output device
author Chris Cannam
date Thu, 05 Oct 2006 11:01:36 +0000
parents c0ae41c72421
children 5c6d38edb163
line wrap: on
line diff
--- a/main/MainWindow.cpp	Thu Oct 05 11:00:59 2006 +0000
+++ b/main/MainWindow.cpp	Thu Oct 05 11:01:36 2006 +0000
@@ -93,12 +93,13 @@
 using std::set;
 
 
-MainWindow::MainWindow() :
+MainWindow::MainWindow(bool withAudioOutput) :
     m_document(0),
     m_paneStack(0),
     m_viewManager(0),
     m_panner(0),
     m_timeRulerLayer(0),
+    m_audioOutput(withAudioOutput),
     m_playSource(0),
     m_playTarget(0),
     m_recentFiles("RecentFiles"),
@@ -3220,7 +3221,7 @@
     updateDescriptionLabel();
     m_panLayer->setModel(model);
     if (model) m_viewManager->setMainModelSampleRate(model->getSampleRate());
-    if (model && !m_playTarget) createPlayTarget();
+    if (model && !m_playTarget && m_audioOutput) createPlayTarget();
 }
 
 void