15 me.configureDialog(me);
24 "snd_attenuation_method_${menu_snd_attenuation_method};" 26 audioApplyButton.disableOnClick =
true;
100 me.TD(me, 1, 3, e =
makeXonoticCheckBox(0,
"menu_snd_attenuation_method", _(
"New style sound attenuation")));
101 e.applyButton = audioApplyButton;
103 me.TD(me, 1, 3,
makeXonoticCheckBox(0,
"snd_mutewhenidle", _(
"Mute sounds when not active")));
105 me.gotoRC(me, 0, 3.2); me.setFirstColumn(me, me.currentColumn);
108 _(
"Sound output frequency")));
109 e.addValue(e, _(
"8 kHz"),
"8000");
110 e.addValue(e, _(
"11.025 kHz"),
"11025");
111 e.addValue(e, _(
"16 kHz"),
"16000");
112 e.addValue(e, _(
"22.05 kHz"),
"22050");
113 e.addValue(e, _(
"24 kHz"),
"24000");
114 e.addValue(e, _(
"32 kHz"),
"32000");
115 e.addValue(e, _(
"44.1 kHz"),
"44100");
116 e.addValue(e, _(
"48 kHz"),
"48000");
117 e.configureXonoticTextSliderValues(e);
118 e.applyButton = audioApplyButton;
122 _(
"Number of channels for the sound output")));
123 e.addValue(e, _(
"Mono"),
"1");
124 e.addValue(e, _(
"Stereo"),
"2");
125 e.addValue(e, _(
"2.1"),
"3");
126 e.addValue(e, _(
"4"),
"4");
127 e.addValue(e, _(
"5"),
"5");
128 e.addValue(e, _(
"5.1"),
"6");
129 e.addValue(e, _(
"6.1"),
"7");
130 e.addValue(e, _(
"7.1"),
"8");
131 e.configureXonoticTextSliderValues(e);
132 e.applyButton = audioApplyButton;
136 _(
"Swap left/right channels")));
139 me.TD(me, 1, 3, e =
makeXonoticCheckBox_T(0,
"snd_spatialization_control", _(
"Headphone friendly mode"),
140 _(
"Enable spatialization (blend the right and left channel slightly to decrease stereo separation a bit for headphones)")));
145 _(
"Play a hit indicator sound when your shot hits an enemy")));
152 me.TD(me, 1, 2.8 / 3, e =
makeXonoticRadioButton_T(3,
"cl_hitsound",
"2", _(
"Decreasing"), _(
"Decrease pitch with more damage")));
155 me.TD(me, 1, 2.8 / 3, e =
makeXonoticRadioButton_T(3,
"cl_hitsound",
"3", _(
"Increasing"), _(
"Increase pitch with more damage")));
162 _(
"Play sounds when clicking menu items")));
164 _(
"Play sounds when hovering over menu items too")));
170 e.addValue(e,
ZCTX(_(
"WRN^Disabled")),
"0");
171 e.addValue(e, _(
"1 minute"),
"1");
172 e.addValue(e, _(
"5 minutes"),
"2");
173 e.addValue(e,
ZCTX(_(
"WRN^Both")),
"3");
174 e.configureXonoticTextSliderValues(e);
178 _(
"Automatically taunt enemies after fragging them")));
179 e.addValue(e, _(
"Never"),
"0");
180 e.addValue(e, _(
"Sometimes"),
"0.35");
181 e.addValue(e, _(
"Often"),
"0.65");
182 e.addValue(e, _(
"Always"),
"1");
183 e.configureXonoticTextSliderValues(e);
187 if(
cvar(
"developer") > 0)
190 me.gotoRC(me, me.rows - 1, 0);
191 me.TD(me, 1, me.columns, audioApplyButton);
void XonoticAudioSettingsTab_fill(entity me)
entity makeXonoticTextLabel(float theAlign, string theText)
entity makeXonoticTextSlider_T(string theCvar, string theTooltip)
entity makeXonoticAudioSettingsTab()
entity makeXonoticCheckBoxEx_T(float theYesValue, float theNoValue, string theCvar, string theText, string theTooltip)
entity makeXonoticCheckBox_T(float isInverted, string theCvar, string theText, string theTooltip)
entity makeXonoticTextSlider(string theCvar)
entity makeXonoticCheckBox(float isInverted, string theCvar, string theText)
entity makeXonoticDecibelsSlider_T(float theValueMin, float theValueMax, float theValueStep, string theCvar, string theTooltip)