diff options
author | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-06 04:30:19 +0000 |
---|---|---|
committer | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-06 04:30:19 +0000 |
commit | f50e7ffca93641ade7145b8f8682eddc30a248bb (patch) | |
tree | 528b0f7f4fe55261a8d275d52d3f1a2342d8d318 /libao2/ao_jack.c | |
parent | 4aa477ef2cfb2973e87e9d0662fe1c4e6946f120 (diff) | |
download | mpv-f50e7ffca93641ade7145b8f8682eddc30a248bb.tar.bz2 mpv-f50e7ffca93641ade7145b8f8682eddc30a248bb.tar.xz |
modifies function declarations without parameters from ()
to the correct (void). Only files in libao2 are affected.
patch by Stefan Huehner stefan AT huehner-org>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18920 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_jack.c')
-rw-r--r-- | libao2/ao_jack.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libao2/ao_jack.c b/libao2/ao_jack.c index 4242a1dba8..556a887a4b 100644 --- a/libao2/ao_jack.c +++ b/libao2/ao_jack.c @@ -77,7 +77,7 @@ static volatile int write_pos; * return value may change between immediately following two calls, * and the real number of free bytes might be larger! */ -static int buf_free() { +static int buf_free(void) { int free = read_pos - write_pos - CHUNK_SIZE; if (free < 0) free += BUFFSIZE; return free; @@ -91,7 +91,7 @@ static int buf_free() { * return value may change between immediately following two calls, * and the real number of buffered bytes might be larger! */ -static int buf_used() { +static int buf_used(void) { int used = write_pos - read_pos; if (used < 0) used += BUFFSIZE; return used; @@ -203,7 +203,7 @@ static int outputaudio(jack_nframes_t nframes, void *arg) { /** * \brief print suboption usage help */ -static void print_help () +static void print_help (void) { mp_msg (MSGT_AO, MSGL_FATAL, "\n-ao jack commandline help:\n" @@ -326,7 +326,7 @@ static void uninit(int immed) { /** * \brief stop playing and empty buffers (for seeking/pause) */ -static void reset() { +static void reset(void) { paused = 1; read_pos = 0; write_pos = 0; @@ -336,18 +336,18 @@ static void reset() { /** * \brief stop playing, keep buffers (for pause) */ -static void audio_pause() { +static void audio_pause(void) { paused = 1; } /** * \brief resume playing, after audio_pause() */ -static void audio_resume() { +static void audio_resume(void) { paused = 0; } -static int get_space() { +static int get_space(void) { return buf_free(); } @@ -361,7 +361,7 @@ static int play(void *data, int len, int flags) { return write_buffer(data, len); } -static float get_delay() { +static float get_delay(void) { int buffered = BUFFSIZE - CHUNK_SIZE - buf_free(); // could be less float in_jack = jack_latency; if (estimate && callback_interval > 0) { |