mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-02-28 04:19:05 -05:00
UI: Display Sample Rate with proper formatting
This commit is contained in:
@@ -2189,9 +2189,9 @@ void OBSBasicSettings::LoadAudioSettings()
|
||||
|
||||
const char *str;
|
||||
if (sampleRate == 48000)
|
||||
str = "48khz";
|
||||
str = "48 kHz";
|
||||
else
|
||||
str = "44.1khz";
|
||||
str = "44.1 kHz";
|
||||
|
||||
int sampleRateIdx = ui->sampleRate->findText(str);
|
||||
if (sampleRateIdx != -1)
|
||||
@@ -3253,7 +3253,7 @@ void OBSBasicSettings::SaveAudioSettings()
|
||||
}
|
||||
|
||||
int sampleRate = 44100;
|
||||
if (sampleRateStr == "48khz")
|
||||
if (sampleRateStr == "48 kHz")
|
||||
sampleRate = 48000;
|
||||
|
||||
if (WidgetChanged(ui->sampleRate))
|
||||
|
||||
Reference in New Issue
Block a user