diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-24 05:21:22 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-24 05:21:22 +0000 |
commit | 242aa6ebd4061b1b2b3651cc0887083206932a7d (patch) | |
tree | 507fde939a2c58eb0f0317aecf3c1e637aedd163 /libao2/ao_null.c | |
parent | becadec644aa84b399c9b1dbacfcdd486b45fd32 (diff) | |
download | mpv-242aa6ebd4061b1b2b3651cc0887083206932a7d.tar.bz2 mpv-242aa6ebd4061b1b2b3651cc0887083206932a7d.tar.xz |
interface to libao2 changed ao_plugin added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3096 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_null.c')
-rw-r--r-- | libao2/ao_null.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libao2/ao_null.c b/libao2/ao_null.c index 8954278f90..e894c47bfb 100644 --- a/libao2/ao_null.c +++ b/libao2/ao_null.c @@ -14,13 +14,6 @@ static ao_info_t info = LIBAO_EXTERN(null) -// there are some globals: -// ao_samplerate -// ao_channels -// ao_format -// ao_bps -// ao_outburst -// ao_buffersize // to set/get/query special features/parameters static int control(int cmd,int arg){ @@ -31,7 +24,7 @@ static int control(int cmd,int arg){ // return: 1=success 0=fail static int init(int rate,int channels,int format,int flags){ - ao_outburst=4096; + ao_data.outburst=4096; return 0; } @@ -61,7 +54,7 @@ static void audio_resume() // return: how many bytes can be played without blocking static int get_space(){ - return ao_outburst; + return ao_data.outburst; } // plays 'len' bytes of 'data' @@ -72,10 +65,10 @@ static int play(void* data,int len,int flags){ return len; } -// return: how many unplayed bytes are in the buffer -static int get_delay(){ +// return: delay in seconds between first and last sample in buffer +static float get_delay(){ - return 0; + return 0.0; } |