> I just wanted to ask if it is possible to change the player volume of
> squeezelite by changing the volume of the connected Alsa Mixer device
> (in a way that the player instance knows about the volume change).
>
> I know it is possible to connect squeezelite to the mixer device by
> adding the -V [Devicename] parameter to the startup, but this only works
> in one direction. If you change the players volume it also changes the
> Alsa Mixer volume BUT if you change the Alsa Mixer Volume the
> squeezelite player doesn't recognize the change and after switching to
> another song the volume is set back to its former value.
>
> Why do I ask? There is a (hardware) rotary encoder for IQAudIO cards
> (DAC) that connects to the Alsa Mixer device and changes the volume. To
> help this volume change to survive longer than the currently playing
> song, I need a way to tell squeezelite about the volume change... Any
> ideas? Maybe there is already a way to get this running?
In reply to my last question I created a patch for Squeezelite to update
the volume of the Squeezelite player by using the CLI of the LMS if the
ALSA-Volume is changed. This is what it is doing right now:
- Reading local Alsa-Volume by given Mixer device in -V parameter on
startup
- updating player volume via CLI on SBS for current squeezelite
instance with given MAC if ALSA-Mixer Volume is changed
- you need to add -DALSASYNC as compile option to get this feature
- also added a startup parameter -Q to set the port of the CLI since
this might not always be on 9090
- tested with IQAudIO DAC on Raspberry Pi
- added a "dirty hack" to get a normalized value for the volume: LMS
volume = ALSA Volume - 8 (don't really know why)
The Patch against the current squeezelite repository from Ralph can be
found here:
https://github.com/max2play/webinterface/blob/master/OTHER/squeezelite_alsasync_volume_210.patch
Once Ralph has some time to look at it, it might become a part of the
squeezelite version in his repository.
As mentioned in my first post this is mainly for headless players with a
attached AMP like HifiBerry AMP or IQAudIO AMP on a Raspberry Pi, that
also have a rotary encoder to change the player volume on the device
itsself.
Stefan
2 x Max2Play on ODROID U2/U3 with LMS, Squeezelite, Shairport, XBMC
1 x Squeezebox Receiver
1 x Denon 1713 AVR + Nubert 5.1 System
iPeng
Max2Play Webinterface and SD-Image: http://www.max2play.com/
Max2Play Shop: http://shop.max2play.com/
------------------------------------------------------------------------
flysurfer's Profile: http://forums.slimdevices.com/member.php?userid=61064
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix