[MPlayer-cvslog] CVS: main/libao2 ao_pcm.c,1.31,1.32

Reimar Döffinger CVS syncmail at mplayerhq.hu
Fri Apr 14 15:18:37 CEST 2006


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	ao_pcm.c 
Log Message:
-ao pcm:fast suboption for faster-than-realtime dumping


Index: ao_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_pcm.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- ao_pcm.c	9 Feb 2006 14:07:54 -0000	1.31
+++ ao_pcm.c	14 Apr 2006 13:18:33 -0000	1.32
@@ -27,6 +27,7 @@
 
 static char *ao_outputfilename = NULL;
 static int ao_pcm_waveheader = 1;
+static int fast = 0;
 
 #define WAV_ID_RIFF 0x46464952 /* "RIFF" */
 #define WAV_ID_WAVE 0x45564157 /* "WAVE" */
@@ -83,6 +84,7 @@
 	opt_t subopts[] = {
 	  {"waveheader", OPT_ARG_BOOL, &ao_pcm_waveheader, NULL},
 	  {"file",       OPT_ARG_MSTRZ, &ao_outputfilename, NULL},
+	  {"fast",       OPT_ARG_BOOL, &fast, NULL},
 	  {NULL}
 	};
 	// set defaults
@@ -179,7 +181,7 @@
 static int get_space(void){
 
     if(vo_pts)
-      return ao_data.pts < vo_pts ? ao_data.outburst : 0;
+      return ao_data.pts < vo_pts + fast * 30000 ? ao_data.outburst : 0;
     return ao_data.outburst;
 }
 




More information about the MPlayer-cvslog mailing list