ao_oss: fix incorrect comments using bytes instead of samples

MPlayer uses bytes, mpv uses sample counts in the AO API.
This commit is contained in:
wm4 2014-09-15 20:22:12 +02:00
parent 8c002b79d3
commit 8efc4b7e24
1 changed files with 3 additions and 3 deletions

View File

@ -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;