mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 15:16:13 -05:00
UI: Remove 22.05khz
22.05khz audio really doesn't make sense to have available, and causes issues with encoders (primarily CoreAudio)
This commit is contained in:
@@ -1541,9 +1541,7 @@ void OBSBasicSettings::LoadAudioSettings()
|
||||
loading = true;
|
||||
|
||||
const char *str;
|
||||
if (sampleRate == 22050)
|
||||
str = "22.05khz";
|
||||
else if (sampleRate == 48000)
|
||||
if (sampleRate == 48000)
|
||||
str = "48khz";
|
||||
else
|
||||
str = "44.1khz";
|
||||
@@ -2175,9 +2173,7 @@ void OBSBasicSettings::SaveAudioSettings()
|
||||
const char *channelSetup = (channelSetupIdx == 0) ? "Mono" : "Stereo";
|
||||
|
||||
int sampleRate = 44100;
|
||||
if (sampleRateStr == "22.05khz")
|
||||
sampleRate = 22050;
|
||||
else if (sampleRateStr == "48khz")
|
||||
if (sampleRateStr == "48khz")
|
||||
sampleRate = 48000;
|
||||
|
||||
if (WidgetChanged(ui->sampleRate))
|
||||
|
||||
Reference in New Issue
Block a user