configure&avdevice/jack: Fixed issue #43 JACK indev support on OSX

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Josh de Kock
2016-02-21 22:42:32 +00:00
committed by Michael Niedermayer
parent cf85a20d92
commit 67f8a0be54
2 changed files with 17 additions and 2 deletions

View File

@@ -35,6 +35,16 @@
#include "timefilter.h"
#include "avdevice.h"
#if HAVE_DISPATCH_DISPATCH_H
#include <dispatch/dispatch.h>
#define sem_t dispatch_semaphore_t
#define sem_init(psem,x,val) *psem = dispatch_semaphore_create(val)
#define sem_post(psem) dispatch_semaphore_signal(*psem)
#define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER)
#define sem_timedwait(psem, val) dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0))
#define sem_destroy(psem) dispatch_release(*psem)
#endif
/**
* Size of the internal FIFO buffers as a number of audio packets
*/