From 01bf82289659b334a837062aef0c4814e26ed4fb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:15:52 +0000 Subject: use size_t and constant pointer in ao plugins The audio output plugins should get a constant pointer, because they must not modify the buffer. Since the size is a non-negative buffer size in bytes, we should change its type to size_t. git-svn-id: https://svn.musicpd.org/mpd/trunk@7293 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_shout.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/audioOutputs/audioOutput_shout.c') diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c index d2725ffac..9ed5b4e7e 100644 --- a/src/audioOutputs/audioOutput_shout.c +++ b/src/audioOutputs/audioOutput_shout.c @@ -597,12 +597,14 @@ static void myShout_sendMetadata(ShoutData * sd) sd->tagToSend = 0; } -static int myShout_play(AudioOutput * audioOutput, char *playChunk, int size) +static int myShout_play(AudioOutput * audioOutput, + const char *playChunk, size_t size) { - int i, j; + unsigned int i; + int j; ShoutData *sd = (ShoutData *) audioOutput->data; float **vorbbuf; - int samples; + unsigned int samples; int bytes = sd->audioFormat->bits / 8; int status; -- cgit v1.2.3