Port player to FreeBSD

The kqueue/kevent timers are no replacement for timerfd, so unfortunately this
doesn't work well at all. Need a higher resolution timer.
This commit is contained in:
Julien BLACHE
2010-05-01 19:24:06 +02:00
parent e49421b04b
commit 882b42f83c
2 changed files with 101 additions and 17 deletions

View File

@@ -4,8 +4,13 @@
#include <stdint.h>
#if defined(__linux__)
/* AirTunes v2 packet interval in ns */
#define AIRTUNES_V2_STREAM_PERIOD 7980000
# define AIRTUNES_V2_STREAM_PERIOD 7980000
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
/* AirTunes v2 packet interval in ms */
# define AIRTUNES_V2_STREAM_PERIOD 8
#endif
/* AirTunes v2 number of samples per packet */
#define AIRTUNES_V2_PACKET_SAMPLES 352