summaryrefslogtreecommitdiffstats
path: root/libao2/ao_macosx.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-06 04:30:19 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-06 04:30:19 +0000
commitf50e7ffca93641ade7145b8f8682eddc30a248bb (patch)
tree528b0f7f4fe55261a8d275d52d3f1a2342d8d318 /libao2/ao_macosx.c
parent4aa477ef2cfb2973e87e9d0662fe1c4e6946f120 (diff)
downloadmpv-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_macosx.c')
-rw-r--r--libao2/ao_macosx.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libao2/ao_macosx.c b/libao2/ao_macosx.c
index 764f47944d..30d495b78b 100644
--- a/libao2/ao_macosx.c
+++ b/libao2/ao_macosx.c
@@ -98,7 +98,7 @@ static ao_macosx_t *ao = NULL;
* two immediately following calls, and the real number of free bytes
* might actually be larger!
*/
-static int buf_free() {
+static int buf_free(void) {
int free = ao->buf_read_pos - ao->buf_write_pos - ao->chunk_size;
if (free < 0) free += ao->buffer_len;
return free;
@@ -111,7 +111,7 @@ static int buf_free() {
* two immediately following calls, and the real number of buffered bytes
* might actually be larger!
*/
-static int buf_used() {
+static int buf_used(void) {
int used = ao->buf_write_pos - ao->buf_read_pos;
if (used < 0) used += ao->buffer_len;
return used;
@@ -346,7 +346,7 @@ static int play(void* output_samples,int num_bytes,int flags)
}
/* set variables and buffer to initial state */
-static void reset()
+static void reset(void)
{
audio_pause();
/* reset ring-buffer state */
@@ -359,14 +359,14 @@ static void reset()
/* return available space */
-static int get_space()
+static int get_space(void)
{
return buf_free();
}
/* return delay until audio is played */
-static float get_delay()
+static float get_delay(void)
{
int buffered = ao->buffer_len - ao->chunk_size - buf_free(); // could be less
// inaccurate, should also contain the data buffered e.g. by the OS
@@ -393,7 +393,7 @@ static void uninit(int immed)
/* stop playing, keep buffers (for pause) */
-static void audio_pause()
+static void audio_pause(void)
{
OSErr status=noErr;
@@ -406,7 +406,7 @@ static void audio_pause()
/* resume playing, after audio_pause() */
-static void audio_resume()
+static void audio_resume(void)
{
OSErr status=noErr;