Mercurial > mplayer.hg
diff libao2/ao_pcm.c @ 3095:981a9e5118ce
interface to libao2 changed ao_plugin added
author | anders |
---|---|
date | Sat, 24 Nov 2001 05:21:22 +0000 |
parents | d92e19f1ae71 |
children | de4074ab4e5f |
line wrap: on
line diff
--- a/libao2/ao_pcm.c Sat Nov 24 02:05:06 2001 +0000 +++ b/libao2/ao_pcm.c Sat Nov 24 05:21:22 2001 +0000 @@ -14,14 +14,6 @@ LIBAO_EXTERN(pcm) -// there are some globals: -// ao_samplerate -// ao_channels -// ao_format -// ao_bps -// ao_outburst -// ao_buffersize - char *ao_outputfilename = NULL; int ao_pcm_waveheader = 1; @@ -90,7 +82,7 @@ printf("PCM: Info - to write WAVE files use -waveheader (default), for RAW PCM -nowaveheader.\n"); fp = fopen(ao_outputfilename, "wb"); - ao_outburst = 4096; + ao_data.outburst = 4096; if(fp) { @@ -134,7 +126,7 @@ // 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' @@ -151,10 +143,10 @@ 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; }