[cfg] Add option for prefering AirPlay 2 (useful for testing)

This commit is contained in:
ejurgensen 2021-01-03 23:51:35 +01:00
parent a5bd8b011e
commit ffadc399af
3 changed files with 12 additions and 1 deletions

View File

@ -322,6 +322,9 @@ FORK_ARG_ENABLE([Chromecast support], [chromecast], [CHROMECAST],
AM_CONDITIONAL([COND_CHROMECAST], [[test "x$enable_chromecast" = "xyes"]])
AM_CONDITIONAL([COND_PROTOBUF_OLD], [[test "x$protobuf_old" = "xyes"]])
dnl Prefer AirPlay 2
FORK_ARG_ENABLE([preference for AirPlay 2 for devices that support both 1 and 2], [preferairplay2], [PREFER_AIRPLAY2])
dnl DB profiling support
FORK_ARG_ENABLE([DB profiling support], [dbprofile], [DB_PROFILE])

View File

@ -4413,7 +4413,11 @@ struct output_definition output_airplay =
{
.name = "AirPlay 2",
.type = OUTPUT_TYPE_AIRPLAY,
.priority = 2, // AirPlay 1 has priority for the time being
#ifdef PREFER_AIRPLAY2
.priority = 1,
#else
.priority = 2,
#endif
.disabled = 0,
.init = airplay_init,
.deinit = airplay_deinit,

View File

@ -4954,7 +4954,11 @@ struct output_definition output_raop =
{
.name = "AirPlay",
.type = OUTPUT_TYPE_RAOP,
#ifdef PREFER_AIRPLAY2
.priority = 2,
#else
.priority = 1,
#endif
.disabled = 0,
.init = raop_init,
.deinit = raop_deinit,