Browse Source

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.
jp9000 12 years ago
parent
commit
75b66872e4
1 changed files with 9 additions and 3 deletions
  1. 9 3
      obs/window-basic-settings.cpp

+ 9 - 3
obs/window-basic-settings.cpp

@@ -491,24 +491,30 @@ void OBSBasicSettings::on_language_currentIndexChanged(int index)
 
 
 void OBSBasicSettings::on_sampleRate_currentIndexChanged(int index)
 void OBSBasicSettings::on_sampleRate_currentIndexChanged(int index)
 {
 {
-	if (!loading)
+	if (!loading) {
 		audioChanged = true;
 		audioChanged = true;
+		ui->videoMsg->setText(QTStr("Settings.ProgramRestart"));
+	}
 
 
 	UNUSED_PARAMETER(index);
 	UNUSED_PARAMETER(index);
 }
 }
 
 
 void OBSBasicSettings::on_channelSetup_currentIndexChanged(int index)
 void OBSBasicSettings::on_channelSetup_currentIndexChanged(int index)
 {
 {
-	if (!loading)
+	if (!loading) {
 		audioChanged = true;
 		audioChanged = true;
+		ui->videoMsg->setText(QTStr("Settings.ProgramRestart"));
+	}
 
 
 	UNUSED_PARAMETER(index);
 	UNUSED_PARAMETER(index);
 }
 }
 
 
 void OBSBasicSettings::on_audioBufferingTime_valueChanged(int value)
 void OBSBasicSettings::on_audioBufferingTime_valueChanged(int value)
 {
 {
-	if (!loading)
+	if (!loading) {
 		audioChanged = true;
 		audioChanged = true;
+		ui->videoMsg->setText(QTStr("Settings.ProgramRestart"));
+	}
 
 
 	UNUSED_PARAMETER(value);
 	UNUSED_PARAMETER(value);
 }
 }