mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 18:06:14 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user