mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 09:56:09 -05:00
Add support for embedded platforms that don't have high-res timers.
This commit is contained in:
committed by
Justin Maggard
parent
0426aa2d08
commit
949cf3808d
@@ -6,7 +6,8 @@
|
||||
|
||||
#if defined(__linux__)
|
||||
/* AirTunes v2 packet interval in ns */
|
||||
# define AIRTUNES_V2_STREAM_PERIOD 7980000
|
||||
/* (352 samples/packet * 1e9 ns/s) / 44100 samples/s = 7981859 ns/packet */
|
||||
#define AIRTUNES_V2_STREAM_PERIOD 7981859
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
/* AirTunes v2 packet interval in ms */
|
||||
# define AIRTUNES_V2_STREAM_PERIOD 8
|
||||
|
||||
Reference in New Issue
Block a user