mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
UI: Remove "audio buffering time" (skip)
(Note: This commit breaks libobs compilation. Skip if bisecting)
This commit is contained in:
@@ -2289,8 +2289,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>63</width>
|
||||
<height>16</height>
|
||||
<width>98</width>
|
||||
<height>28</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
@@ -2663,50 +2663,6 @@
|
||||
<item alignment="Qt::AlignTop">
|
||||
<widget class="QWidget" name="widget_11" native="true">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_17">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox_6">
|
||||
<property name="title">
|
||||
<string>Basic.Settings.Audio</string>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout_17">
|
||||
<property name="fieldGrowthPolicy">
|
||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
||||
</property>
|
||||
<property name="labelAlignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_35">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Basic.Settings.Advanced.Audio.BufferingTime</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="audioBufferingTime">
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>1000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QGroupBox" name="advancedVideoContainer">
|
||||
<property name="title">
|
||||
|
||||
@@ -720,7 +720,6 @@ bool OBSBasic::InitBasicConfigDefaults()
|
||||
config_set_default_uint (basicConfig, "Audio", "SampleRate", 44100);
|
||||
config_set_default_string(basicConfig, "Audio", "ChannelSetup",
|
||||
"Stereo");
|
||||
config_set_default_uint (basicConfig, "Audio", "BufferingTime", 1000);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -2194,8 +2193,6 @@ bool OBSBasic::ResetAudio()
|
||||
else
|
||||
ai.speakers = SPEAKERS_STEREO;
|
||||
|
||||
ai.buffer_ms = config_get_uint(basicConfig, "Audio", "BufferingTime");
|
||||
|
||||
return obs_reset_audio(&ai);
|
||||
}
|
||||
|
||||
|
||||
@@ -340,7 +340,6 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
HookWidget(ui->fpsInteger, SCROLL_CHANGED, VIDEO_CHANGED);
|
||||
HookWidget(ui->fpsNumerator, SCROLL_CHANGED, VIDEO_CHANGED);
|
||||
HookWidget(ui->fpsDenominator, SCROLL_CHANGED, VIDEO_CHANGED);
|
||||
HookWidget(ui->audioBufferingTime, SCROLL_CHANGED, ADV_RESTART);
|
||||
HookWidget(ui->renderer, COMBO_CHANGED, ADV_RESTART);
|
||||
HookWidget(ui->adapter, COMBO_CHANGED, ADV_RESTART);
|
||||
HookWidget(ui->colorFormat, COMBO_CHANGED, ADV_CHANGED);
|
||||
@@ -1643,8 +1642,6 @@ void OBSBasicSettings::LoadAudioSettings()
|
||||
|
||||
void OBSBasicSettings::LoadAdvancedSettings()
|
||||
{
|
||||
uint32_t audioBufferingTime = config_get_uint(main->Config(),
|
||||
"Audio", "BufferingTime");
|
||||
const char *videoColorFormat = config_get_string(main->Config(),
|
||||
"Video", "ColorFormat");
|
||||
const char *videoColorSpace = config_get_string(main->Config(),
|
||||
@@ -1676,7 +1673,6 @@ void OBSBasicSettings::LoadAdvancedSettings()
|
||||
ui->streamDelayPreserve->setChecked(preserveDelay);
|
||||
ui->streamDelayEnable->setChecked(enableDelay);
|
||||
|
||||
ui->audioBufferingTime->setValue(audioBufferingTime);
|
||||
SetComboByName(ui->colorFormat, videoColorFormat);
|
||||
SetComboByName(ui->colorSpace, videoColorSpace);
|
||||
SetComboByValue(ui->colorRange, videoColorRange);
|
||||
@@ -2107,7 +2103,6 @@ void OBSBasicSettings::SaveAdvancedSettings()
|
||||
ui->resetOSXVSync->isChecked());
|
||||
#endif
|
||||
|
||||
SaveSpinBox(ui->audioBufferingTime, "Audio", "BufferingTime");
|
||||
SaveCombo(ui->colorFormat, "Video", "ColorFormat");
|
||||
SaveCombo(ui->colorSpace, "Video", "ColorSpace");
|
||||
SaveComboData(ui->colorRange, "Video", "ColorRange");
|
||||
|
||||
Reference in New Issue
Block a user