gonic icon indicating copy to clipboard operation
gonic copied to clipboard

Volume control not working in Jukebox mode

Open Ke1i opened this issue 3 years ago • 2 comments

I installed gonic via docker (actually podman) and everything works so far except for volume control - I have to use alsamixer to raise or lower the volume. Is there a variable I can change or settings I can tinker with to have volume control working? I've tried both Dsub and Ultrasonic clients on Android and changing the volume does nothing. Here's my podman run command:

sudo podman run -dt --name=gonic
    -e TZ=Africa/Nairobi
    -e GONIC_JUKEBOX_ENABLED=true
    -p 4747:80
    -v /home/keli/containers/gonic/db:/data
    -v /home/keli/containers/gonic/cache:/cache 
    -v /media/Music:/music 
    -v /media/Music/Podcasts:/podcasts 
    --device=/dev/snd:/dev/snd 
    --group-add=audio 
docker.io/sentriz/gonic:latest

Ke1i avatar Jul 19 '22 04:07 Ke1i

Just opened the logs and I can see the 'setGain' commands when I press the volume buttons, so the commands are being sent but it does nothing to the actual volume. Here's a sample output of said logs:

2022/07/19 09:23:26 response  200  for `/rest/jukeboxControl.view?action=status&u=admin&c=Ultrasonic&f=json&v=1.15.0&t=006cd094bf0350433b466ffa1762e0f5&s=77EF1F06A58AF1729C74DB23CB910E1D`
2022/07/19 09:23:28 response  200  for `/rest/jukeboxControl.view?action=stop&u=admin&c=Ultrasonic&f=json&v=1.15.0&t=db00e1063e5992756000634d0499662f&s=AB934D72EBF38B143A8DD2EB0280890A`
2022/07/19 09:23:37 response  200  for `/rest/jukeboxControl.view?action=setGain&gain=0.9&u=admin&c=Ultrasonic&f=json&v=1.15.0&t=c6afdb70c1ed4759196be11b0a38d4dc&s=7B69FC796D849B8D3AAE7CA4C9C3AC04`

Ke1i avatar Jul 19 '22 06:07 Ke1i

hey, volume control for jukebox is not implemented yet. the jukebox has a static gain of 0.9 out of 1

definitely it would be something worth added. i may also be added in #221, but not sure

either way, i'll try get this in before the next release

sentriz avatar Jul 20 '22 22:07 sentriz

closing in favour of #211 :+1:

sentriz avatar Oct 08 '22 15:10 sentriz