comparison DOCS/tech/libao2.txt @ 29212:eda346733b8c

Add missing 'void' to parameterless function declarations.
author diego
date Mon, 04 May 2009 17:35:26 +0000
parents 5c6111664933
children 0f1b5b68af32
comparison
equal deleted inserted replaced
29211:f9023fbd672a 29212:eda346733b8c
10 The init of driver, opens device, sets sample rate, channels, sample format 10 The init of driver, opens device, sets sample rate, channels, sample format
11 parameters. 11 parameters.
12 Sample format: usually AFMT_S16_LE or AFMT_U8, for more definitions see 12 Sample format: usually AFMT_S16_LE or AFMT_U8, for more definitions see
13 dec_audio.c and linux/soundcards.h files! 13 dec_audio.c and linux/soundcards.h files!
14 14
15 static void uninit(); 15 static void uninit(void);
16 Guess what. 16 Guess what.
17 Ok I help: closes the device, not (yet) called when exit. 17 Ok I help: closes the device, not (yet) called when exit.
18 18
19 static void reset(); 19 static void reset(void);
20 Resets device. To be exact, it's for deleting buffers' contents, 20 Resets device. To be exact, it's for deleting buffers' contents,
21 so after reset() the previously received stuff won't be output. 21 so after reset() the previously received stuff won't be output.
22 (called if pause or seek) 22 (called if pause or seek)
23 23
24 static int get_space(); 24 static int get_space(void);
25 Returns how many bytes can be written into the audio buffer without 25 Returns how many bytes can be written into the audio buffer without
26 blocking (making caller process wait). MPlayer occasionally checks the 26 blocking (making caller process wait). MPlayer occasionally checks the
27 remaining space and tries to fill the buffer with play() if there's free 27 remaining space and tries to fill the buffer with play() if there's free
28 space. The buffer size used should be sane; a buffer that is too small 28 space. The buffer size used should be sane; a buffer that is too small
29 could run empty before MPlayer tries filling it again (normally once per 29 could run empty before MPlayer tries filling it again (normally once per
39 The purpose of this flag is to tell aos that round down the audio played 39 The purpose of this flag is to tell aos that round down the audio played
40 from "len" to a multiple of some chunksize that this "len" should not be 40 from "len" to a multiple of some chunksize that this "len" should not be
41 rounded down to 0 or the data will never be played (as MPlayer will never 41 rounded down to 0 or the data will never be played (as MPlayer will never
42 call play() with a larger len). 42 call play() with a larger len).
43 43
44 static float get_delay(); 44 static float get_delay(void);
45 Returns how long time it will take to play the data currently in the 45 Returns how long time it will take to play the data currently in the
46 output buffer. Be exact, if possible, since the whole timing depends 46 output buffer. Be exact, if possible, since the whole timing depends
47 on this! In the worst case, return the maximum delay. 47 on this! In the worst case, return the maximum delay.
48 48
49 !!! Because the video is synchronized to the audio (card), it's very important 49 !!! Because the video is synchronized to the audio (card), it's very important