/
/
/
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 // The line below is filled in with an `interface = "..."` directive when the
13 // stream server is bound to a specific interface, else it is left empty.
14{INTERFACE_LINE}};
15
16metadata =
17{
18 enabled = "yes";
19 include_cover_art = "yes";
20 pipe_name = "{METADATA_PIPE}";
21 pipe_timeout = 0; // Don't timeout, keep pipe open
22};
23
24pipe =
25{
26 name = "{AUDIO_PIPE}";
27};
28
29// Session control - run commands on playback events
30// We use these instead of parsing verbose logs for better reliability
31sessioncontrol =
32{
33 // Send markers to metadata pipe for play start/stop events
34 run_this_before_entering_active_state = "/bin/sh -c 'echo MA_PLAY_BEGIN > {METADATA_PIPE}'";
35 run_this_after_exiting_active_state = "/bin/sh -c 'echo MA_PLAY_END > {METADATA_PIPE}'";
36 active_state_timeout = 10.0; // Seconds of silence before considering playback ended
37 wait_for_completion = "no"; // Don't block playback waiting for commands
38};
39