spotifyd
spotifyd copied to clipboard
Initial volume wrong; rounding down
Description
When I set initial_volume in the config to 50, spotify_tui reports it as 49%.
I have narrowed down this issue to being only initial_volume.
I know of a fix; just add one to the u16 after it's been mapped from 0-100 to 0x0000 to 0xFFFF.
Should I open a PR?
To Reproduce
- Set
initial_volumeto a value. - Enter a spotify client which can display volume in percent
- See how it's one less than expected.
Expected behavior
The volume should be what I set in the config.
Compilation flags
- [x] dbus_mpris
- [ ] dbus_keyring
- [ ] alsa_backend
- [ ] portaudio_backend
- [x] pulseaudio_backend
- [ ] rodio_backend
Versions (please complete the following information):
- OS: Arch Linux
- Spotifyd: bae6f1efcde4eaa3bbed2dec9ade5206139d6eb0
- cargo: 1.47.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still not resolved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still not resolved.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still not resolved.