Remove settings edit box for snd_rate

The default setting `48000` should be fine for the majority of the users so it's not necessary to be able to change this in the settings menu.
This commit is contained in:
Robert Müller 2023-05-24 20:57:47 +02:00
parent 460cda85d7
commit 70b5e4b5bd
36 changed files with 1 additions and 121 deletions

View file

@ -1533,9 +1533,6 @@ Graphics cards
auto auto
== ==
Sample rate
==
Appearance Appearance
== ==

View file

@ -348,9 +348,6 @@ Rename demo
Reset filter Reset filter
== Скінуць фільтр == Скінуць фільтр
Sample rate
== Чашчыня сэмпла
Score Score
== Ачкі == Ачкі

View file

@ -350,9 +350,6 @@ Rename demo
Reset filter Reset filter
== Poništi filter == Poništi filter
Sample rate
== Frekvencija
Score Score
== Rezultat == Rezultat

View file

@ -373,9 +373,6 @@ Rename demo
Reset filter Reset filter
== Redefinir filtro == Redefinir filtro
Sample rate
== Frequência do som
Score Score
== Pontos == Pontos

View file

@ -347,9 +347,6 @@ Rename demo
Reset filter Reset filter
== Рестартирай филтрите == Рестартирай филтрите
Sample rate
== Честота
Score Score
== Точки == Точки

View file

@ -345,9 +345,6 @@ Rename demo
Reset filter Reset filter
== Reiniciar el filtre == Reiniciar el filtre
Sample rate
== Freqüència de la imatge
Score Score
== Punts == Punts

View file

@ -347,9 +347,6 @@ Rename demo
Reset filter Reset filter
== Фильтрсене тасат == Фильтрсене тасат
Sample rate
== Тăтăшлăх
Score Score
== Паллă == Паллă

View file

@ -346,9 +346,6 @@ Rename demo
Reset filter Reset filter
== Vymazat filtr == Vymazat filtr
Sample rate
== Vzorkování:
Score Score
== Skóre == Skóre

View file

@ -348,9 +348,6 @@ Rename demo
Reset filter Reset filter
== Nulstil filter == Nulstil filter
Sample rate
== Sample frekvens
Score Score
== Score == Score

View file

@ -360,9 +360,6 @@ Rename demo
Reset filter Reset filter
== Herstel filter == Herstel filter
Sample rate
== Voorbeeldssnelheid
Score Score
== Score == Score

View file

@ -1324,9 +1324,6 @@ Enable highlighted chat sound
Threaded sound loading Threaded sound loading
== ==
Sample rate
==
Sound volume Sound volume
== ==

View file

@ -349,9 +349,6 @@ Rename demo
Reset filter Reset filter
== Nollaa suotimet == Nollaa suotimet
Sample rate
== Näytteenottotaajuus
Score Score
== Pisteet == Pisteet

View file

@ -371,9 +371,6 @@ Rename demo
Reset filter Reset filter
== Filtres par défaut == Filtres par défaut
Sample rate
== Taux d'échantillonnage
Score Score
== Score == Score

View file

@ -368,9 +368,6 @@ Rename demo
Reset filter Reset filter
== Standardfilter == Standardfilter
Sample rate
== Abtastrate
Score Score
== Punkte == Punkte

View file

@ -350,9 +350,6 @@ Rename demo
Reset filter Reset filter
== Αφαίρεση φίλτρου == Αφαίρεση φίλτρου
Sample rate
== Δειγματοληψία
Score Score
== Βαθμ. == Βαθμ.

View file

@ -340,9 +340,6 @@ Rename demo
Reset filter Reset filter
== Szűrő visszaállítása == Szűrő visszaállítása
Sample rate
== Mintavételi frekvencia
Score Score
== Pontszám == Pontszám

View file

@ -352,9 +352,6 @@ Rename demo
Reset filter Reset filter
== Azzera filtri == Azzera filtri
Sample rate
== Frequenza
Score Score
== Punti == Punti

View file

@ -344,9 +344,6 @@ Rename demo
Reset filter Reset filter
== フィルタをリセット == フィルタをリセット
Sample rate
== サンプルレート
Score Score
== スコア == スコア

View file

@ -350,9 +350,6 @@ Rename demo
Reset filter Reset filter
== 필터 초기화 == 필터 초기화
Sample rate
== 샘플링 속도
Score Score
== 점수 == 점수

View file

@ -412,9 +412,6 @@ Laser
Round Round
== Раунду == Раунду
Sample rate
== Жыштыгы
Sat. Sat.
== Канык. == Канык.

View file

@ -349,9 +349,6 @@ Rename demo
Reset filter Reset filter
== Tilbakestill filter == Tilbakestill filter
Sample rate
== Samplingsrate
Score Score
== Poeng == Poeng

View file

@ -1291,9 +1291,6 @@ Enable highlighted chat sound
Threaded sound loading Threaded sound loading
== ﯼﺍ ﻪﺘﺷﺭ ﯼﺍﺪﺻ ﯼﺭﺍﺬﮔﺭﺎﺑ == ﯼﺍ ﻪﺘﺷﺭ ﯼﺍﺪﺻ ﯼﺭﺍﺬﮔﺭﺎﺑ
Sample rate
== ﻪﻧﻮﻤﻧ ﺥﺮﻧ
Appearance Appearance
== ﺮﻫﺎﻇ == ﺮﻫﺎﻇ

View file

@ -351,9 +351,6 @@ Rename demo
Reset filter Reset filter
== Przywróć domyślne == Przywróć domyślne
Sample rate
== Częstotliwość próbkowania
Score Score
== Wynik == Wynik

View file

@ -363,9 +363,6 @@ Reset
Reset filter Reset filter
== Reiniciar filtro == Reiniciar filtro
Sample rate
== Frequencia de rate
Score Score
== Pontos == Pontos

View file

@ -356,9 +356,6 @@ Rename demo
Reset filter Reset filter
== Filtru implicit == Filtru implicit
Sample rate
== Frecvența
Score Score
== Scor == Scor

View file

@ -360,9 +360,6 @@ Rename demo
Reset filter Reset filter
== Сбросить фильтры == Сбросить фильтры
Sample rate
== Частота
Score Score
== Счёт == Счёт

View file

@ -347,9 +347,6 @@ Rename demo
Reset filter Reset filter
== Povrati filter == Povrati filter
Sample rate
== Frekfencija
Score Score
== Rezultat == Rezultat

View file

@ -343,9 +343,6 @@ Rename demo
Reset filter Reset filter
== Поврати филтер == Поврати филтер
Sample rate
== Фрекфенција
Score Score
== Резултат == Резултат

View file

@ -407,9 +407,6 @@ Rename demo
Reset filter Reset filter
== 重置筛选 == 重置筛选
Sample rate
== 采样率
Score Score
== 分数 == 分数

View file

@ -347,9 +347,6 @@ Rename demo
Reset filter Reset filter
== Obnoviť filter == Obnoviť filter
Sample rate
== Sample rate
Score Score
== Skóre == Skóre

View file

@ -368,9 +368,6 @@ Rename demo
Reset filter Reset filter
== Resetear filtro == Resetear filtro
Sample rate
== Frecuencia de muestreo
Score Score
== Puntos == Puntos

View file

@ -351,9 +351,6 @@ Rename demo
Reset filter Reset filter
== Återställ filter == Återställ filter
Sample rate
== Samplingsfrekvens
Score Score
== Poäng == Poäng

View file

@ -395,9 +395,6 @@ Rename demo
Reset filter Reset filter
== 重置過濾器 == 重置過濾器
Sample rate
== 取樣率
Score Score
== 分數 == 分數

View file

@ -349,9 +349,6 @@ Rename demo
Reset filter Reset filter
== Filtreleri sıfırla == Filtreleri sıfırla
Sample rate
== Örnekleme hızı
Score Score
== Skor == Skor

View file

@ -260,9 +260,6 @@ Remote console
Reset filter Reset filter
== Скинути фільтри == Скинути фільтри
Sample rate
== Частота
Score Score
== бали == бали

View file

@ -1944,14 +1944,13 @@ void CMenus::RenderSettingsSound(CUIRect MainView)
{ {
CUIRect Button, Label; CUIRect Button, Label;
static int s_SndEnable = g_Config.m_SndEnable; static int s_SndEnable = g_Config.m_SndEnable;
static int s_SndRate = g_Config.m_SndRate;
MainView.HSplitTop(20.0f, &Button, &MainView); MainView.HSplitTop(20.0f, &Button, &MainView);
if(DoButton_CheckBox(&g_Config.m_SndEnable, Localize("Use sounds"), g_Config.m_SndEnable, &Button)) if(DoButton_CheckBox(&g_Config.m_SndEnable, Localize("Use sounds"), g_Config.m_SndEnable, &Button))
{ {
g_Config.m_SndEnable ^= 1; g_Config.m_SndEnable ^= 1;
UpdateMusicState(); UpdateMusicState();
m_NeedRestartSound = g_Config.m_SndEnable && (!s_SndEnable || s_SndRate != g_Config.m_SndRate); m_NeedRestartSound = g_Config.m_SndEnable && !s_SndEnable;
} }
if(!g_Config.m_SndEnable) if(!g_Config.m_SndEnable)
@ -2000,20 +1999,6 @@ void CMenus::RenderSettingsSound(CUIRect MainView)
if(DoButton_CheckBox(&g_Config.m_ClThreadsoundloading, Localize("Threaded sound loading"), g_Config.m_ClThreadsoundloading, &Button)) if(DoButton_CheckBox(&g_Config.m_ClThreadsoundloading, Localize("Threaded sound loading"), g_Config.m_ClThreadsoundloading, &Button))
g_Config.m_ClThreadsoundloading ^= 1; g_Config.m_ClThreadsoundloading ^= 1;
// sample rate box
{
MainView.HSplitTop(20.0f, &Button, &MainView);
UI()->DoLabel(&Button, Localize("Sample rate"), 14.0f, TEXTALIGN_ML);
Button.VSplitLeft(190.0f, 0, &Button);
static CLineInputNumber s_SndRateInput(g_Config.m_SndRate);
if(UI()->DoEditBox(&s_SndRateInput, &Button, 14.0f))
{
g_Config.m_SndRate = maximum(1, s_SndRateInput.GetInteger());
m_NeedRestartSound = !s_SndEnable || s_SndRate != g_Config.m_SndRate;
}
s_SndRateInput.SetInteger(g_Config.m_SndRate);
}
// volume slider // volume slider
{ {
MainView.HSplitTop(5.0f, &Button, &MainView); MainView.HSplitTop(5.0f, &Button, &MainView);