Mercurial > mplayer.hg
changeset 5481:8ae2bf330ad5
control() done
author | arpi |
---|---|
date | Wed, 03 Apr 2002 21:37:26 +0000 |
parents | df12f6eb80e3 |
children | cd97c8313300 |
files | libmpcodecs/ad_dk3adpcm.c libmpcodecs/ad_dk4adpcm.c libmpcodecs/ad_imaadpcm.c libmpcodecs/ad_msadpcm.c |
diffstat | 4 files changed, 20 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_dk3adpcm.c Wed Apr 03 21:01:15 2002 +0000 +++ b/libmpcodecs/ad_dk3adpcm.c Wed Apr 03 21:37:26 2002 +0000 @@ -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; }
--- a/libmpcodecs/ad_dk4adpcm.c Wed Apr 03 21:01:15 2002 +0000 +++ b/libmpcodecs/ad_dk4adpcm.c Wed Apr 03 21:37:26 2002 +0000 @@ -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; }
--- a/libmpcodecs/ad_imaadpcm.c Wed Apr 03 21:01:15 2002 +0000 +++ b/libmpcodecs/ad_imaadpcm.c Wed Apr 03 21:37:26 2002 +0000 @@ -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; }
--- a/libmpcodecs/ad_msadpcm.c Wed Apr 03 21:01:15 2002 +0000 +++ b/libmpcodecs/ad_msadpcm.c Wed Apr 03 21:37:26 2002 +0000 @@ -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; }