From 75b66872e403cc0ac2acf18948e362d7cdd77466 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 23 Feb 2014 18:00:09 -0700 Subject: [PATCH] Require restart for audio changes (for now) Resetting audio while libobs is active is a real pain. I think I'm just going to do audio resetting later, or maybe just require restart regardless just because having to shut down audio streams/lines while there's sources currently active requires recreating all the audio lines for each audio source. Very painful. Video fortunately is no big deal, so at least there's that. --- obs/window-basic-settings.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/obs/window-basic-settings.cpp b/obs/window-basic-settings.cpp index 52dc20cd4..f0a21bd12 100644 --- a/obs/window-basic-settings.cpp +++ b/obs/window-basic-settings.cpp @@ -491,24 +491,30 @@ void OBSBasicSettings::on_language_currentIndexChanged(int index) void OBSBasicSettings::on_sampleRate_currentIndexChanged(int index) { - if (!loading) + if (!loading) { audioChanged = true; + ui->videoMsg->setText(QTStr("Settings.ProgramRestart")); + } UNUSED_PARAMETER(index); } void OBSBasicSettings::on_channelSetup_currentIndexChanged(int index) { - if (!loading) + if (!loading) { audioChanged = true; + ui->videoMsg->setText(QTStr("Settings.ProgramRestart")); + } UNUSED_PARAMETER(index); } void OBSBasicSettings::on_audioBufferingTime_valueChanged(int value) { - if (!loading) + if (!loading) { audioChanged = true; + ui->videoMsg->setText(QTStr("Settings.ProgramRestart")); + } UNUSED_PARAMETER(value); }