[Mplayer-cvslog] CVS: main cfg-mplayer.h, 1.225, 1.226 mplayer.c, 1.772, 1.773

Attila Kinali CVS syncmail at mplayerhq.hu
Mon Aug 23 02:31:35 CEST 2004


CVS change done by Attila Kinali CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv17347

Modified Files:
	cfg-mplayer.h mplayer.c 
Log Message:
Make the stepsize of volume changes, changeable by a commandline paarameter


Index: cfg-mplayer.h
===================================================================
RCS file: /cvsroot/mplayer/main/cfg-mplayer.h,v
retrieving revision 1.225
retrieving revision 1.226
diff -u -r1.225 -r1.226
--- cfg-mplayer.h	8 Aug 2004 23:19:49 -0000	1.225
+++ cfg-mplayer.h	23 Aug 2004 00:31:32 -0000	1.226
@@ -47,6 +47,8 @@
 extern int fakemono; // defined in dec_audio.c
 #endif
 
+extern int volstep;
+
 #ifdef HAVE_LIRC
 extern char *lirc_configfile;
 #endif
@@ -190,6 +192,7 @@
 	{"dsp", "Use -ao oss:dsp_path.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
         {"mixer", &mixer_device, CONF_TYPE_STRING, 0, 0, 0, NULL},
         {"mixer-channel", &mixer_channel, CONF_TYPE_STRING, 0, 0, 0, NULL},
+	{"volstep", &volstep, CONF_TYPE_INT, CONF_RANGE, 0, 100, NULL},
 	{"master", "Option -master has been removed, use -aop list=volume instead.\n", CONF_TYPE_PRINT, 0, 0, 0, NULL},
 	// override audio buffer size (used only by -ao oss, anyway obsolete...)
 	{"abs", &ao_data.buffersize, CONF_TYPE_INT, CONF_MIN, 0, 0, NULL},

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.772
retrieving revision 1.773
diff -u -r1.772 -r1.773
--- mplayer.c	22 Aug 2004 19:52:50 -0000	1.772
+++ mplayer.c	23 Aug 2004 00:31:32 -0000	1.773
@@ -529,6 +529,8 @@
 
 #include "mixer.h"
 mixer_t mixer;
+/// step size of mixer changes
+int volstep = 3;
 
 #include "cfg-mplayer.h"
 
@@ -1921,7 +1923,7 @@
   }
   mixer.audio_out = audio_out;
   mixer.afilter = sh_audio ? sh_audio->afilter : NULL;
-  mixer.volstep = 3;
+  mixer.volstep = volstep;
 }
 
 current_module="av_init";




More information about the MPlayer-cvslog mailing list