summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/out/ao_pcm.c')
-rw-r--r--audio/out/ao_pcm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/out/ao_pcm.c b/audio/out/ao_pcm.c
index e94e6b569a..1d88fc6665 100644
--- a/audio/out/ao_pcm.c
+++ b/audio/out/ao_pcm.c
@@ -196,13 +196,14 @@ static int get_space(struct ao *ao)
return 65536;
}
-static int play(struct ao *ao, void *data, int len, int flags)
+static int play(struct ao *ao, void **data, int samples, int flags)
{
struct priv *priv = ao->priv;
+ int len = samples * ao->sstride;
- fwrite(data, len, 1, priv->fp);
+ fwrite(data[0], len, 1, priv->fp);
priv->data_length += len;
- return len;
+ return len / ao->sstride;
}
#define OPT_BASE_STRUCT struct priv