[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

@@ -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,