aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2005-03-17 03:28:05 +0000
committerWarren Dukes <warren.dukes@gmail.com>2005-03-17 03:28:05 +0000
commitd392b7e48b2b589a24f9a790fbb8e14dbac36993 (patch)
tree76e0a7f2fcf5e3e172560fa09e2803d6401b210c
parent700d7aa2a0f9385ebb6e7c32aca9bb5f10e033b3 (diff)
downloadmpd-d392b7e48b2b589a24f9a790fbb8e14dbac36993.tar.gz
mpd-d392b7e48b2b589a24f9a790fbb8e14dbac36993.tar.xz
mpd-d392b7e48b2b589a24f9a790fbb8e14dbac36993.zip
bump the OS X buffer up to 1s
git-svn-id: https://svn.musicpd.org/mpd/trunk@3098 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutputs/audioOutput_osx.c6
1 files changed, 3 insertions, 3 deletions
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;