aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/shout_mp3.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-10 21:28:25 +0100
committerMax Kellermann <max@duempel.org>2009-02-10 21:28:25 +0100
commitb27d9e055bb51a4e5eff04c6e9237009d4578c7b (patch)
tree024a37d08209a16d6bc618b96d31cb1f786139b1 /src/output/shout_mp3.c
parent12756c1b55dcf95364bb6ce5a476387e99067478 (diff)
downloadmpd-b27d9e055bb51a4e5eff04c6e9237009d4578c7b.tar.gz
mpd-b27d9e055bb51a4e5eff04c6e9237009d4578c7b.tar.xz
mpd-b27d9e055bb51a4e5eff04c6e9237009d4578c7b.zip
shout: pass void pointer to the encoder
Pass the music chunk as a "const void *" to the encoder, instead of a "const char *". Actually, both encoders currently expect 16 bit samples, passing a 8-bit character is rather pointless.
Diffstat (limited to 'src/output/shout_mp3.c')
-rw-r--r--src/output/shout_mp3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/shout_mp3.c b/src/output/shout_mp3.c
index 6086c843e..0e5d778f7 100644
--- a/src/output/shout_mp3.c
+++ b/src/output/shout_mp3.c
@@ -134,8 +134,8 @@ static int shout_mp3_encoder_send_metadata(struct shout_data *sd,
return 1;
}
-static int shout_mp3_encoder_encode(struct shout_data *sd,
- const char * chunk, size_t len)
+static int
+shout_mp3_encoder_encode(struct shout_data *sd, const void *chunk, size_t len)
{
const int16_t *src = (const int16_t*)chunk;
unsigned int i;