OS X tweaks
git-svn-id: https://svn.musicpd.org/mpd/trunk@3095 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -106,7 +106,7 @@ enable_osx=no
|
|||||||
case $host in
|
case $host in
|
||||||
*-darwin*)
|
*-darwin*)
|
||||||
AC_DEFINE(HAVE_OSX, 1, [Define for compiling OS X support])
|
AC_DEFINE(HAVE_OSX, 1, [Define for compiling OS X support])
|
||||||
MPD_LIBS="$MPD_LIBS -framework CoreAudio"
|
MPD_LIBS="$MPD_LIBS -framework AudioUnit -framework CoreServices"
|
||||||
enable_osx=yes ;;
|
enable_osx=yes ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "../log.h"
|
#include "../log.h"
|
||||||
|
|
||||||
#define BUFFER_SIZE 4096
|
#define BUFFER_SIZE 32768
|
||||||
|
|
||||||
typedef struct _OsxData {
|
typedef struct _OsxData {
|
||||||
AudioUnit au;
|
AudioUnit au;
|
||||||
@@ -168,9 +168,7 @@ static OSStatus osx_render(void * vdata,
|
|||||||
if(od->pos >= BUFFER_SIZE) od->pos = 0;
|
if(od->pos >= BUFFER_SIZE) od->pos = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(bufferSize) {
|
buffer->mDataByteSize -= bufferSize;
|
||||||
memset(buffer->mData+curpos, 0, bufferSize);
|
|
||||||
}
|
|
||||||
|
|
||||||
pthread_cond_signal(&od->condition);
|
pthread_cond_signal(&od->condition);
|
||||||
pthread_mutex_unlock(&od->mutex);
|
pthread_mutex_unlock(&od->mutex);
|
||||||
|
Reference in New Issue
Block a user