diff main/main.cpp @ 635:41e221cd740e

Update subrepos and adapt to new MainWindowBase API, ensuring that we don't get the recording permission dialog until we actually record
author Chris Cannam
date Wed, 16 Oct 2019 16:03:47 +0100
parents e06cbdc7301c
children de3d628e048e
line wrap: on
line diff
--- a/main/main.cpp	Mon Oct 14 14:56:17 2019 +0100
+++ b/main/main.cpp	Wed Oct 16 16:03:47 2019 +0100
@@ -282,10 +282,14 @@
     qRegisterMetaType<size_t>("size_t");
     qRegisterMetaType<PropertyContainer::PropertyName>("PropertyContainer::PropertyName");
 
-    MainWindow::SoundOptions options = MainWindow::WithEverything;
-    if (!audioOutput) options = 0;
+    MainWindow::AudioMode audioMode = 
+        MainWindow::AUDIO_PLAYBACK_NOW_RECORD_LATER;
+
+    if (!audioOutput) {
+        audioMode = MainWindow::AUDIO_NONE;
+    } 
     
-    MainWindow *gui = new MainWindow(options, sonification, spectrogram);
+    MainWindow *gui = new MainWindow(audioMode, sonification, spectrogram);
     application.setMainWindow(gui);
     if (splash) {
         QObject::connect(gui, SIGNAL(hideSplash()), splash, SLOT(hide()));