/
/
/
1// Shairport Sync configuration file template for Music Assistant
2// This file will be copied and customized for each AirPlay receiver instance
3
4general =
5{
6 name = "{AIRPLAY_NAME}";
7 ignore_volume_control = "yes";
8 output_backend = "pipe";
9 default_airplay_volume = {DEFAULT_VOLUME};
10 port = {PORT};
11 // Using tinysvcmdns (embedded mDNS, no external daemon required)
12};
13
14metadata =
15{
16 enabled = "yes";
17 include_cover_art = "yes";
18 pipe_name = "{METADATA_PIPE}";
19 pipe_timeout = 0; // Don't timeout, keep pipe open
20};
21
22pipe =
23{
24 name = "{AUDIO_PIPE}";
25};
26
27// Session control - run commands on playback events
28// We use these instead of parsing verbose logs for better reliability
29sessioncontrol =
30{
31 // Send markers to metadata pipe for play start/stop events
32 run_this_before_entering_active_state = "/bin/sh -c 'echo MA_PLAY_BEGIN > {METADATA_PIPE}'";
33 run_this_after_exiting_active_state = "/bin/sh -c 'echo MA_PLAY_END > {METADATA_PIPE}'";
34 active_state_timeout = 10.0; // Seconds of silence before considering playback ended
35 wait_for_completion = "no"; // Don't block playback waiting for commands
36};
37