[quake3-commits] r2173 - in trunk/code: client q3_ui
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Sep 19 18:38:51 EDT 2011
Author: thilo
Date: 2011-09-19 18:38:51 -0400 (Mon, 19 Sep 2011)
New Revision: 2173
Modified:
trunk/code/client/snd_dma.c
trunk/code/q3_ui/ui_sound.c
Log:
Bug 5178 - Sound quality menu option has no effect
Modified: trunk/code/client/snd_dma.c
===================================================================
--- trunk/code/client/snd_dma.c 2011-09-19 22:15:24 UTC (rev 2172)
+++ trunk/code/client/snd_dma.c 2011-09-19 22:38:51 UTC (rev 2173)
@@ -77,7 +77,6 @@
static sfx_t *sfxHash[LOOP_HASH];
cvar_t *s_testsound;
-cvar_t *s_khz;
cvar_t *s_show;
cvar_t *s_mixahead;
cvar_t *s_mixPreStep;
@@ -1494,7 +1493,6 @@
return qfalse;
}
- s_khz = Cvar_Get ("s_khz", "22", CVAR_ARCHIVE);
s_mixahead = Cvar_Get ("s_mixahead", "0.2", CVAR_ARCHIVE);
s_mixPreStep = Cvar_Get ("s_mixPreStep", "0.05", CVAR_ARCHIVE);
s_show = Cvar_Get ("s_show", "0", CVAR_CHEAT);
Modified: trunk/code/q3_ui/ui_sound.c
===================================================================
--- trunk/code/q3_ui/ui_sound.c 2011-09-19 22:15:24 UTC (rev 2172)
+++ trunk/code/q3_ui/ui_sound.c 2011-09-19 22:38:51 UTC (rev 2173)
@@ -42,15 +42,10 @@
#define ID_NETWORK 13
#define ID_EFFECTSVOLUME 14
#define ID_MUSICVOLUME 15
-#define ID_QUALITY 16
//#define ID_A3D 17
#define ID_BACK 18
-static const char *quality_items[] = {
- "Low", "High", NULL
-};
-
typedef struct {
menuframework_s menu;
@@ -65,7 +60,6 @@
menuslider_s sfxvolume;
menuslider_s musicvolume;
- menulist_s quality;
// menuradiobutton_s a3d;
menubitmap_s back;
@@ -110,19 +104,6 @@
case ID_MUSICVOLUME:
trap_Cvar_SetValue( "s_musicvolume", soundOptionsInfo.musicvolume.curvalue / 10 );
break;
-
- case ID_QUALITY:
- if( soundOptionsInfo.quality.curvalue ) {
- trap_Cvar_SetValue( "s_khz", 22 );
- trap_Cvar_SetValue( "s_compression", 0 );
- }
- else {
- trap_Cvar_SetValue( "s_khz", 11 );
- trap_Cvar_SetValue( "s_compression", 1 );
- }
- UI_ForceMenuOff();
- trap_Cmd_ExecuteText( EXEC_APPEND, "snd_restart\n" );
- break;
/*
case ID_A3D:
if( soundOptionsInfo.a3d.curvalue ) {
@@ -240,16 +221,6 @@
soundOptionsInfo.musicvolume.generic.y = y;
soundOptionsInfo.musicvolume.minvalue = 0;
soundOptionsInfo.musicvolume.maxvalue = 10;
-
- y += BIGCHAR_HEIGHT+2;
- soundOptionsInfo.quality.generic.type = MTYPE_SPINCONTROL;
- soundOptionsInfo.quality.generic.name = "Sound Quality:";
- soundOptionsInfo.quality.generic.flags = QMF_PULSEIFFOCUS|QMF_SMALLFONT;
- soundOptionsInfo.quality.generic.callback = UI_SoundOptionsMenu_Event;
- soundOptionsInfo.quality.generic.id = ID_QUALITY;
- soundOptionsInfo.quality.generic.x = 400;
- soundOptionsInfo.quality.generic.y = y;
- soundOptionsInfo.quality.itemnames = quality_items;
/*
y += BIGCHAR_HEIGHT+2;
soundOptionsInfo.a3d.generic.type = MTYPE_RADIOBUTTON;
@@ -280,13 +251,11 @@
Menu_AddItem( &soundOptionsInfo.menu, ( void * ) &soundOptionsInfo.network );
Menu_AddItem( &soundOptionsInfo.menu, ( void * ) &soundOptionsInfo.sfxvolume );
Menu_AddItem( &soundOptionsInfo.menu, ( void * ) &soundOptionsInfo.musicvolume );
- Menu_AddItem( &soundOptionsInfo.menu, ( void * ) &soundOptionsInfo.quality );
// Menu_AddItem( &soundOptionsInfo.menu, ( void * ) &soundOptionsInfo.a3d );
Menu_AddItem( &soundOptionsInfo.menu, ( void * ) &soundOptionsInfo.back );
soundOptionsInfo.sfxvolume.curvalue = trap_Cvar_VariableValue( "s_volume" ) * 10;
soundOptionsInfo.musicvolume.curvalue = trap_Cvar_VariableValue( "s_musicvolume" ) * 10;
- soundOptionsInfo.quality.curvalue = !trap_Cvar_VariableValue( "s_compression" );
// soundOptionsInfo.a3d.curvalue = (int)trap_Cvar_VariableValue( "s_usingA3D" );
}
More information about the quake3-commits
mailing list