Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moodeaudio opened this issue Sep 5, 2024 · 4 comments
Open

Comments

@moodeaudio
Copy link

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
@moodeaudio moodeaudio added the bug label Sep 5, 2024
@kingosticks
Copy link
Contributor

And to be explicit, this is a regression compared to 0.4, yes?

Related to #41

@roderickvd
Copy link
Member

Certainly possible because I rewrote the way it takes the volume from the initial handshake in 0.5.

This would be a good "first issue" for someone to jump and in contribute. The logic should not be difficult to find and fix.

@moodeaudio
Copy link
Author

@kingosticks, yes it appears to be a regression compared to 0.4.

I should also mention that setting --initial-volume to a value greater than 0 seems to work fine.

@roderickvd
Copy link
Member

Any takers before releasing 0.5 maybe this weekend?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants