Mercurial > mplayer.hg
diff libao2/ao_win32.c @ 18915:99e20a22d5d0
modifies function declarations without parameters from ()
to the correct (void). Only files in libao2 are affected.
patch by Stefan Huehner stefan AT huehner-org>
author | reynaldo |
---|---|
date | Thu, 06 Jul 2006 04:30:19 +0000 |
parents | cc9c088305d9 |
children | 36589811e5d0 |
line wrap: on
line diff
--- a/libao2/ao_win32.c Thu Jul 06 02:07:03 2006 +0000 +++ b/libao2/ao_win32.c Thu Jul 06 04:30:19 2006 +0000 @@ -254,7 +254,7 @@ } // stop playing and empty buffers (for seeking/pause) -static void reset() +static void reset(void) { waveOutReset(hWaveOut); buf_write=0; @@ -264,19 +264,19 @@ } // stop playing, keep buffers (for pause) -static void audio_pause() +static void audio_pause(void) { waveOutPause(hWaveOut); } // resume playing, after audio_pause() -static void audio_resume() +static void audio_resume(void) { waveOutRestart(hWaveOut); } // return: how many bytes can be played without blocking -static int get_space() +static int get_space(void) { return BUFFER_COUNT*BUFFER_SIZE - buffered_bytes; } @@ -322,7 +322,7 @@ } // return: delay in seconds between first and last sample in buffer -static float get_delay() +static float get_delay(void) { return (float)(buffered_bytes + ao_data.buffersize)/(float)ao_data.bps; }