From 226d52b36fe648215f367d352ad6e5eb38e116be Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Sep 2008 15:49:29 +0200 Subject: switch to C99 types, part II Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch. --- src/audioOutputs/audioOutput_shout_mp3.c | 2 +- src/audioOutputs/audioOutput_shout_ogg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/audioOutputs') diff --git a/src/audioOutputs/audioOutput_shout_mp3.c b/src/audioOutputs/audioOutput_shout_mp3.c index d3ec0b75b..d1fe87884 100644 --- a/src/audioOutputs/audioOutput_shout_mp3.c +++ b/src/audioOutputs/audioOutput_shout_mp3.c @@ -153,7 +153,7 @@ static int shout_mp3_encoder_encode(struct shout_data *sd, for (i = 0; i < samples; i++) { for (j = 0; j < sd->audio_format.channels; j++) { - lamebuf[j][i] = *((const mpd_sint16 *) chunk); + lamebuf[j][i] = *((const int16_t *) chunk); chunk += bytes; } } diff --git a/src/audioOutputs/audioOutput_shout_ogg.c b/src/audioOutputs/audioOutput_shout_ogg.c index d8627a007..aa96c4032 100644 --- a/src/audioOutputs/audioOutput_shout_ogg.c +++ b/src/audioOutputs/audioOutput_shout_ogg.c @@ -267,7 +267,7 @@ static int shout_ogg_encoder_encode(struct shout_data *sd, for (i = 0; i < samples; i++) { for (j = 0; j < sd->audio_format.channels; j++) { - vorbbuf[j][i] = (*((const mpd_sint16 *) chunk)) / 32768.0; + vorbbuf[j][i] = (*((const int16_t *) chunk)) / 32768.0; chunk += bytes; } } -- cgit v1.2.3