diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2005-03-17 02:33:40 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2005-03-17 02:33:40 +0000 |
commit | 63f152466b276bf66f6f70715c3287570b0627a9 (patch) | |
tree | c918eb16e3e0b7a7572497fea5672b98e9375f25 /src/audioOutputs/audioOutput_osx.c | |
parent | b4da244c5e9e9dc9870a4ec9024c221d8ba117ac (diff) | |
download | mpd-63f152466b276bf66f6f70715c3287570b0627a9.tar.gz mpd-63f152466b276bf66f6f70715c3287570b0627a9.tar.xz mpd-63f152466b276bf66f6f70715c3287570b0627a9.zip |
OS X tweaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@3095 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audioOutputs/audioOutput_osx.c')
-rw-r--r-- | src/audioOutputs/audioOutput_osx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audioOutputs/audioOutput_osx.c b/src/audioOutputs/audioOutput_osx.c index 03c3cfc67..186d32e6c 100644 --- a/src/audioOutputs/audioOutput_osx.c +++ b/src/audioOutputs/audioOutput_osx.c @@ -26,7 +26,7 @@ #include "../log.h" -#define BUFFER_SIZE 4096 +#define BUFFER_SIZE 32768 typedef struct _OsxData { AudioUnit au; @@ -168,9 +168,7 @@ static OSStatus osx_render(void * vdata, if(od->pos >= BUFFER_SIZE) od->pos = 0; } - if(bufferSize) { - memset(buffer->mData+curpos, 0, bufferSize); - } + buffer->mDataByteSize -= bufferSize; pthread_cond_signal(&od->condition); pthread_mutex_unlock(&od->mutex); |