[Mplayer-cvslog] CVS: main/libaf af.c,1.14,1.15 af_volume.c,1.1,1.2

Richard Felker CVS rfelker at mplayerhq.hu
Wed Oct 30 05:11:47 CET 2002


Update of /cvsroot/mplayer/main/libaf
In directory mail:/var/tmp.root/cvs-serv9722/libaf

Modified Files:
	af.c af_volume.c 
Log Message:
enable volume filter and fix nonsense default volume (still not usable
because mixer.c has no mechanism to pass volume commands to libaf)


Index: af.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- af.c	16 Oct 2002 01:49:40 -0000	1.14
+++ af.c	30 Oct 2002 04:11:26 -0000	1.15
@@ -17,6 +17,7 @@
 extern af_info_t af_info_channels;
 extern af_info_t af_info_format;
 extern af_info_t af_info_resample;
+extern af_info_t af_info_volume;
 
 static af_info_t* filter_list[]={ \
    &af_info_dummy,\
@@ -24,6 +25,7 @@
    &af_info_channels,\
    &af_info_format,\
    &af_info_resample,\
+   &af_info_volume,\
    NULL \
 };
 

Index: af_volume.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_volume.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- af_volume.c	16 Oct 2002 01:49:40 -0000	1.1
+++ af_volume.c	30 Oct 2002 04:11:26 -0000	1.2
@@ -206,7 +206,7 @@
   // Enable volume control and set initial volume to 0.1
   ((af_volume_t*)af->setup)->onoff = 1;
   for(i=0;i<NCH;i++)
-    ((af_volume_t*)af->setup)->volume[i]=0.1;
+    ((af_volume_t*)af->setup)->volume[i]=1.0; //0.1;
 
   return AF_OK;
 }




More information about the MPlayer-cvslog mailing list