From 8efc4b7e2440ba2a2c19f8c056fbcb2f47d0dfbc Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 15 Sep 2014 20:22:12 +0200 Subject: ao_oss: fix incorrect comments using bytes instead of samples MPlayer uses bytes, mpv uses sample counts in the AO API. --- audio/out/ao_oss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/out') diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index 367df4d87f..e77c2bc4e6 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -500,7 +500,7 @@ static void reset(struct ao *ao) } } -// return: how many bytes can be played without blocking +// return: how many samples can be played without blocking static int get_space(struct ao *ao) { struct priv *p = ao->priv; @@ -525,9 +525,9 @@ static void audio_pause(struct ao *ao) #endif } -// plays 'len' bytes of 'data' +// plays 'len' samples of 'data' // it should round it down to outburst*n -// return: number of bytes played +// return: number of samples played static int play(struct ao *ao, void **data, int samples, int flags) { struct priv *p = ao->priv; -- cgit v1.2.3