ソースを参照

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 年 前
コミット
75b66872e4
1 ファイル変更9 行追加3 行削除
  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)
 {
-	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);
 }