philippe_44 wrote:
> I contributed to that part so I think the issue is that squeezeplay
> players, like the Radio and the Touch have their own volume up/down for
> anything below 1 sec. Here is the code in SqueezePlay.pm that explains
> that
> >
Code:
--------------------
> >
> sub fade_volume {
> my ($client, $fade, $callback, $callbackargs) = @_;
>
> if (abs($fade) > 1 ) {
> # for long fades do standard behavior so that sleep/alarm work
> $client->SUPER::fade_volume($fade, $callback, $callbackargs);
> } else {
> #SP does local audio control for mute/pause/unpause so don't do fade in/out
> my $vol = abs($prefs->client($client)->get("volume"));
> $vol = ($fade > 0) ? $vol : 0;
> $client->volume($vol, 1);
> if ($callback) {
> &{$callback}(@{$callbackargs});
> }
>
> }
> }
>
--------------------
> >
> Now, squeezelite and other derivatives don't have that feature, so we
> can either try to add it or change the test so that if $client->model
> is not a Radio or a Touch, the > 1 test does not apply. Something like
> >
Code:
--------------------
> >
> if ($client->model !~ /baby|fab4/ || abs($fade) > 1) {
>
--------------------
> >
> Of course, ideally you'd want the player to expose it's capabilities
> ...I must have missed this. Where would I find this play and resume fade in
function?
Sent from my Pixel 3a using Tapatalk
------------------------------------------------------------------------
slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=111984
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter