From d392b7e48b2b589a24f9a790fbb8e14dbac36993 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 17 Mar 2005 03:28:05 +0000 Subject: bump the OS X buffer up to 1s git-svn-id: https://svn.musicpd.org/mpd/trunk@3098 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_osx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/audioOutputs/audioOutput_osx.c') diff --git a/src/audioOutputs/audioOutput_osx.c b/src/audioOutputs/audioOutput_osx.c index c5ca2883a..5ed4bc5bf 100644 --- a/src/audioOutputs/audioOutput_osx.c +++ b/src/audioOutputs/audioOutput_osx.c @@ -242,9 +242,9 @@ static int osx_openDevice(AudioOutput * audioOutput) { return -1; } - /* create a buffer of 0.5s */ - od->bufferSize = (audioFormat->sampleRate >> 1) * - (audioFormat->bits>>3) * (audioFormat->channels); + /* create a buffer of 1s */ + od->bufferSize = (audioFormat->sampleRate) * + (audioFormat->bits >> 3) * (audioFormat->channels); od->buffer = realloc(od->buffer, od->bufferSize); od->pos = 0; -- cgit v1.2.3