Skip to content

Commit

Permalink
Allow fade-in for squeezeplay client that don't handle it locally whe…
Browse files Browse the repository at this point in the history
…n < 1s
  • Loading branch information
philippe44 committed Apr 13, 2020
1 parent 1cc387a commit 12100ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Player/SqueezePlay.pm
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ sub pcm_sample_rates {
sub fade_volume {
my ($client, $fade, $callback, $callbackargs) = @_;

if (abs($fade) > 1 ) {
if (abs($fade) > 1 || $client->model !~ /baby|fab4/) {
# for long fades do standard behavior so that sleep/alarm work
$client->SUPER::fade_volume($fade, $callback, $callbackargs);
} else {
Expand Down

0 comments on commit 12100ea

Please sign in to comment.