aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c8
-rw-r--r--src/audio.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/audio.c b/src/audio.c
index 9ca85c58d..5f4d1abb5 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -49,9 +49,9 @@ static mpd_uint8 *audioDeviceStates;
static mpd_uint8 audioOpened;
-static mpd_sint32 audioBufferSize;
+static size_t audioBufferSize;
static char *audioBuffer;
-static mpd_sint32 audioBufferPos;
+static size_t audioBufferPos;
unsigned int audio_device_count(void)
{
@@ -358,9 +358,9 @@ int openAudioDevice(AudioFormat * audioFormat)
return ret;
}
-int playAudio(const char *playChunk, int size)
+int playAudio(const char *playChunk, size_t size)
{
- int send_size;
+ size_t send_size;
while (size > 0) {
send_size = audioBufferSize - audioBufferPos;
diff --git a/src/audio.h b/src/audio.h
index ef0f211c2..806737ce6 100644
--- a/src/audio.h
+++ b/src/audio.h
@@ -59,7 +59,7 @@ void finishAudioDriver(void);
int openAudioDevice(AudioFormat * audioFormat);
-int playAudio(const char *playChunk, int size);
+int playAudio(const char *playChunk, size_t size);
void dropBufferedAudio(void);