aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_osx.c
diff options
context:
space:
mode:
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;