bump the OS X buffer up to 1s

git-svn-id: https://svn.musicpd.org/mpd/trunk@3098 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2005-03-17 03:28:05 +00:00
parent 700d7aa2a0
commit d392b7e48b

View File

@ -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;