(Object unused)
| 1348 | } |
| 1349 | |
| 1350 | private static void UpdateSoundQualityFunc(Object unused) { |
| 1351 | boolean driverNotChanged = false; |
| 1352 | String current = s_drivers[s_options_quality_list.curvalue]; |
| 1353 | driverNotChanged = S.getDriverName().equals(current); |
| 1354 | // if (s_options_quality_list.curvalue != 0) { |
| 1355 | // // Cvar.SetValue("s_khz", 22); |
| 1356 | // // Cvar.SetValue("s_loadas8bit", 0); |
| 1357 | // driverNotChanged = S.getDriverName().equals("dummy"); |
| 1358 | // Cvar.Set("s_impl", "dummy"); |
| 1359 | // } else { |
| 1360 | // // Cvar.SetValue("s_khz", 11); |
| 1361 | // // Cvar.SetValue("s_loadas8bit", 1); |
| 1362 | // driverNotChanged = S.getDriverName().equals("joal"); |
| 1363 | // Cvar.Set("s_impl", "joal"); |
| 1364 | // } |
| 1365 | |
| 1366 | //Cvar.SetValue("s_primary", s_options_compatibility_list.curvalue); |
| 1367 | |
| 1368 | if (driverNotChanged) { |
| 1369 | ClientGlobals.re.EndFrame(); |
| 1370 | return; |
| 1371 | } else { |
| 1372 | Cvar.getInstance().Set("s_impl", current); |
| 1373 | |
| 1374 | DrawTextBox(8, 120 - 48, 36, 3); |
| 1375 | Print(16 + 16, 120 - 48 + 8, "Restarting the sound system. This"); |
| 1376 | Print(16 + 16, 120 - 48 + 16, "could take up to a minute, so"); |
| 1377 | Print(16 + 16, 120 - 48 + 24, "please be patient."); |
| 1378 | |
| 1379 | // the text box won't show up unless we do a buffer swap |
| 1380 | ClientGlobals.re.EndFrame(); |
| 1381 | |
| 1382 | CL.Snd_Restart_f.execute(Collections.emptyList()); |
| 1383 | } |
| 1384 | } |
| 1385 | |
| 1386 | private static String cd_music_items[] = { "disabled", "enabled" }; |
| 1387 |
no test coverage detected