summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-15 20:22:12 +0200
committerwm4 <wm4@nowhere>2014-09-15 20:22:12 +0200
commit8efc4b7e2440ba2a2c19f8c056fbcb2f47d0dfbc (patch)
tree7c6fac921a136eb8a951b68a268b5d11b0674bed
parent8c002b79d361293bf5ad05df012bb1875d41bd73 (diff)
downloadmpv-8efc4b7e2440ba2a2c19f8c056fbcb2f47d0dfbc.tar.bz2
mpv-8efc4b7e2440ba2a2c19f8c056fbcb2f47d0dfbc.tar.xz
ao_oss: fix incorrect comments using bytes instead of samples
MPlayer uses bytes, mpv uses sample counts in the AO API.
-rw-r--r--audio/out/ao_oss.c6
1 files changed, 3 insertions, 3 deletions
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;