Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqueezePlay.pm: Possible wrong string compare??? #909

Closed
chincheta0815 opened this issue Sep 25, 2023 · 2 comments
Closed

SqueezePlay.pm: Possible wrong string compare??? #909

chincheta0815 opened this issue Sep 25, 2023 · 2 comments

Comments

@chincheta0815
Copy link
Contributor

Hej there,

I am trying to get some proper Mute Info into Squeezelite and found something possibly wrong in Slim/Player/SqueezePlay.pm.

Shouldn't the regexp in that line: https://github.com/Logitech/slimserver/blob/a063401fe91bc81889f3ca2524f1ce6ab349879c/Slim/Player/SqueezePlay.pm#L250

... if (abs($fade) > 1 || $client->model !~ /baby|fab4/) { ...

rather be
... if (abs($fade) > 1 || $client->model =~ /baby|fab4/) { ...

Otherwise the comment
# for long fades do standard behavior so that sleep/alarm work
does not make any sense (at least) to me: squeezelite usually has no internal alarm function.

The issue would also explain why I am getting fade on mute and unmute with squeezelite...

@chincheta0815
Copy link
Contributor Author

I created a pull request: #910

@michaelherger
Copy link
Member

michaelherger commented Sep 25, 2023

You try to revert/modify a change @philippe44 applied three years ago specifically (I would assume) for squeezelite(-esp). See 12100ea.

What is the exact issue you're trying to solve? Fading in/out IMHO is expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants