@@ -233,6 +233,7 @@ public slots:
233233 void onMixerSettings (double drive, double outputVolume);
234234 void onAudioSwitchDone (const SonicPi::AudioSwitchOutcome& outcome);
235235 void onAudioDeviceReopenReply (bool accepted, QString reason);
236+ void onAudioStateChanged (const QString& state, const QString& reason); // the engine's own fallback: say where the sound went
236237 void changeBufferSize (int size);
237238 void resetAudioDevice ();
238239
@@ -253,6 +254,7 @@ public slots:
253254 // startup never finished (see audioBootDecision); say so once we are up.
254255 bool m_audioPrefsSkippedAtBoot = false ;
255256 bool m_audioDevicesSeen = false ;
257+ bool m_announceDeviceAfterRollback = false ; // the next device list names where the engine's fallback went
256258 bool m_audioInputDevicesSeen = false ;
257259 bool m_audioDeviceConfigSeen = false ;
258260 SonicPi::AudioDevicesInfo m_lastAudioDevices;
@@ -632,8 +634,6 @@ private slots:
632634#if defined(Q_OS_MAC) || defined(Q_OS_WIN)
633635 // A+V session-recorder branch of toggleRecording. Write to a temp
634636 // file; rename or delete it once the user picks a save location.
635- void onAudioStateChanged (const QString& state, const QString& reason); // the engine's own fallback: say where the sound went
636- bool m_announceDeviceAfterRollback = false ;
637637 void startSessionRecordingFlow ();
638638 void stopSessionRecordingFlow ();
639639 void recordingFailed (const QString& reason); // the recorder could not start or died: Record goes back
0 commit comments