Skip to content

[Problem]: Issue with volume control when multiple Shairport-Sync instances are grouped #2167

@killerlife

Description

@killerlife

What happened?

Description

I am running multiple instances of Shairport Sync on a Linux machine using Docker. Volume control behaves differently depending on whether a single instance or multiple instances are connected from the phone.

Observed behavior

  1. When the phone app connects to only one Shairport-Sync instance, changing the volume from the Shairport-Sync side correctly updates the volume displayed in the phone app.
  2. When the phone app connects to multiple Shairport-Sync instances in a group, changing the volume from one Shairport-Sync instance causes the volume of all grouped players in the phone app to change.
  3. The resulting volume values shown in the phone app are not consistent with the value set from Shairport-Sync.

How the volume is being changed

I am using the command from sample.dbus.commands:

dbus-send --print-reply --system
--dest=org.gnome.ShairportSync
/org/gnome/ShairportSync
org.freedesktop.DBus.Properties.Set
string:org.gnome.ShairportSync
string:Volume
variant:double:-10.0

Question

  1. How can I further diagnose or debug this behavior?
  2. Is this expected behavior when multiple AirPlay receivers are grouped?
  3. Is there a recommended way to control volume via D-Bus in this multi-instance setup?

Any suggestions on how to locate the root cause or resolve this issue would be greatly appreciated.

Relevant log output

System Information.

Raspberry Pi 4, 2 x USB Sound Card

Configuration Information.

>> Display Config Start.

From "uname -a":
 Linux MediaCenter 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

From /etc/os-release:
 Debian GNU/Linux 11 (bullseye)

From /sys/firmware/devicetree/base/model:
 Raspberry Pi 4 Model B Rev 1.5

Shairport Sync Version String:
 4.3.7-AirPlay2-smi7-alac-OpenSSL-Avahi-ALSA-pa-pipe-soxr-metadata-dbus-sysconfdir:/etc

Command Line:
 ./shairport-sync --displayConfig
No configuration file.

>> Display Config End.
>> Goodbye!

PulseAudio or PipeWire installed?

  • Check if your system uses a Sound Server.

How did you install Shairport Sync?

Built from source

Check previous issues

  • Confirm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions