[Mplayer-cvslog] CVS: main/libmpcodecs ad_dk3adpcm.c,1.3,1.4 ad_dk4adpcm.c,1.3,1.4 ad_imaadpcm.c,1.3,1.4 ad_msadpcm.c,1.4,1.5

Arpi of Ize arpi at mplayer.dev.hu
Wed Apr 3 23:37:29 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv32302

Modified Files:
	ad_dk3adpcm.c ad_dk4adpcm.c ad_imaadpcm.c ad_msadpcm.c 
Log Message:
control() done

Index: ad_dk3adpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_dk3adpcm.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ad_dk3adpcm.c	1 Apr 2002 17:57:51 -0000	1.3
+++ ad_dk3adpcm.c	3 Apr 2002 21:37:26 -0000	1.4
@@ -89,9 +89,12 @@
 {
 }
 
-static int control(sh_audio_t *sh,int cmd,void* arg, ...)
+static int control(sh_audio_t *sh_audio,int cmd,void* arg, ...)
 {
-    // TODO!
+  if(cmd==ADCTRL_SKIP_FRAME){
+    demux_read_data(sh_audio->ds, sh_audio->a_in_buffer,sh_audio->ds->ss_mul);
+    return CONTROL_TRUE;
+  }
   return CONTROL_UNKNOWN;
 }
 

Index: ad_dk4adpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_dk4adpcm.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ad_dk4adpcm.c	1 Apr 2002 17:57:51 -0000	1.3
+++ ad_dk4adpcm.c	3 Apr 2002 21:37:26 -0000	1.4
@@ -44,9 +44,13 @@
 {
 }
 
-static int control(sh_audio_t *sh,int cmd,void* arg, ...)
+static int control(sh_audio_t *sh_audio,int cmd,void* arg, ...)
 {
     // TODO!
+  if(cmd==ADCTRL_SKIP_FRAME){
+    demux_read_data(sh_audio->ds, sh_audio->a_in_buffer,sh_audio->wf->nBlockAlign);
+    return CONTROL_TRUE;
+  }
   return CONTROL_UNKNOWN;
 }
 

Index: ad_imaadpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_imaadpcm.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ad_imaadpcm.c	1 Apr 2002 17:57:51 -0000	1.3
+++ ad_imaadpcm.c	3 Apr 2002 21:37:26 -0000	1.4
@@ -118,9 +118,12 @@
 {
 }
 
-static int control(sh_audio_t *sh,int cmd,void* arg, ...)
+static int control(sh_audio_t *sh_audio,int cmd,void* arg, ...)
 {
-    // TODO!!!
+  if(cmd==ADCTRL_SKIP_FRAME){
+    demux_read_data(sh_audio->ds, sh_audio->a_in_buffer,sh_audio->ds->ss_mul);
+    return CONTROL_TRUE;
+  }
   return CONTROL_UNKNOWN;
 }
 

Index: ad_msadpcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_msadpcm.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ad_msadpcm.c	1 Apr 2002 17:57:51 -0000	1.4
+++ ad_msadpcm.c	3 Apr 2002 21:37:26 -0000	1.5
@@ -85,9 +85,12 @@
 {
 }
 
-static int control(sh_audio_t *sh,int cmd,void* arg, ...)
+static int control(sh_audio_t *sh_audio,int cmd,void* arg, ...)
 {
-    // TODO!!!
+  if(cmd==ADCTRL_SKIP_FRAME){
+    demux_read_data(sh_audio->ds, sh_audio->a_in_buffer,sh_audio->ds->ss_mul);
+    return CONTROL_TRUE;
+  }
   return CONTROL_UNKNOWN;
 }
 




More information about the MPlayer-cvslog mailing list