Skip to content

Version 5 dev (2ea7436) --initial-volume 0 results in full volume #1325

@moodeaudio

Description

@moodeaudio

Describe the bug
The option --initial-volume 0 results in full (100%) volume when iPhone client connects and then starts playback.

The volume slider on the client appears to get set differently depending on whether the client was already playing locally before librespot is started followed by client connecting.

  1. Already playing locally: Slider gets set to 0 position after librespot starts and stays at 0 after connecting, output volume = full
  2. Not playing locally: Slider gets set to 0 position after librespot starts but then goes to almost 100% after connecting + play, output volume = full

In either case actual output volume is full volume (100%)

To reproduce
Steps to reproduce the behavior:

  1. Launch librespot with
sudo librespot --name "Moode9 Spotify" --bitrate 320 --format S16 --mixer softvol --initial-volume 0 --volume-ctrl log --volume-range 60 --cache /var/local/www/spotify_cache --disable-audio-cache --backend alsa --device "_audioout" --onevent /var/local/www/commandw/spotevent.sh -v > /var/log/moode_librespot.log 2>&1
  1. In Spotify iPhone App playback should be stopped
  2. Connect to "Moode9 Spotify"
  3. Observe App volume slider position
  4. NOTE: Be sure downstream volume control is set very low!
  5. Start playback
  6. Observe App volume slider position and actual output volume

Log
Its ginormous so maybe a link is best :-)
moode_librespot.log

Host (what you are running librespot on):

  • OS: RaspiOS Bookworm
  • Platform: Pi5

Additional context

  • Audio device: Allo Boss DAC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions