aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/ao_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-23 09:34:26 +0100
committerMax Kellermann <max@duempel.org>2009-02-23 09:34:26 +0100
commita4dfab2aee0650970af4244c8f4b6c4d738d6c0c (patch)
tree6b0200009da13f5a3d7041f1a0b2e477b8e762da /src/output/ao_plugin.c
parent5a898c15e79ab87d2466e61549fcc20ce115c67e (diff)
downloadmpd-a4dfab2aee0650970af4244c8f4b6c4d738d6c0c.tar.gz
mpd-a4dfab2aee0650970af4244c8f4b6c4d738d6c0c.tar.xz
mpd-a4dfab2aee0650970af4244c8f4b6c4d738d6c0c.zip
output: pass the music chunk pointer as void*, not char*
The meaning of the chunk depends on the audio format; don't suggest a specific format by declaring the pointer as "char*", pass "void*" instead.
Diffstat (limited to '')
-rw-r--r--src/output/ao_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/ao_plugin.c b/src/output/ao_plugin.c
index c9d10174e..ca790e879 100644
--- a/src/output/ao_plugin.c
+++ b/src/output/ao_plugin.c
@@ -209,7 +209,7 @@ static int ao_play_deconst(ao_device *device, const void *output_samples,
}
static size_t
-audioOutputAo_play(void *data, const char *playChunk, size_t size)
+audioOutputAo_play(void *data, const void *chunk, size_t size)
{
AoData *ad = (AoData *)data;
@@ -219,7 +219,7 @@ audioOutputAo_play(void *data, const char *playChunk, size_t size)
if (size > ad->writeSize)
size = ad->writeSize;
- if (ao_play_deconst(ad->device, playChunk, size) == 0) {
+ if (ao_play_deconst(ad->device, chunk, size) == 0) {
audioOutputAo_error("Closing libao device due to play error");
return 0;
}