comparison 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
comparison
equal deleted inserted replaced
45:6b6bca31ad53 46:47bff9f88882
91 using std::vector; 91 using std::vector;
92 using std::map; 92 using std::map;
93 using std::set; 93 using std::set;
94 94
95 95
96 MainWindow::MainWindow() : 96 MainWindow::MainWindow(bool withAudioOutput) :
97 m_document(0), 97 m_document(0),
98 m_paneStack(0), 98 m_paneStack(0),
99 m_viewManager(0), 99 m_viewManager(0),
100 m_panner(0), 100 m_panner(0),
101 m_timeRulerLayer(0), 101 m_timeRulerLayer(0),
102 m_audioOutput(withAudioOutput),
102 m_playSource(0), 103 m_playSource(0),
103 m_playTarget(0), 104 m_playTarget(0),
104 m_recentFiles("RecentFiles"), 105 m_recentFiles("RecentFiles"),
105 m_recentTransforms("RecentTransforms"), 106 m_recentTransforms("RecentTransforms"),
106 m_mainMenusCreated(false), 107 m_mainMenusCreated(false),
3218 { 3219 {
3219 // std::cerr << "MainWindow::mainModelChanged(" << model << ")" << std::endl; 3220 // std::cerr << "MainWindow::mainModelChanged(" << model << ")" << std::endl;
3220 updateDescriptionLabel(); 3221 updateDescriptionLabel();
3221 m_panLayer->setModel(model); 3222 m_panLayer->setModel(model);
3222 if (model) m_viewManager->setMainModelSampleRate(model->getSampleRate()); 3223 if (model) m_viewManager->setMainModelSampleRate(model->getSampleRate());
3223 if (model && !m_playTarget) createPlayTarget(); 3224 if (model && !m_playTarget && m_audioOutput) createPlayTarget();
3224 } 3225 }
3225 3226
3226 void 3227 void
3227 MainWindow::modelAboutToBeDeleted(Model *model) 3228 MainWindow::modelAboutToBeDeleted(Model *model)
3228 { 3229 {