------------------------------------------------------------------------
A poll associated with this post was created, to vote and see the
results, please visit http://forums.slimdevices.com/showthread.php?t=116649
------------------------------------------------------------------------
Question: On what player types does the alarm fail for you?
- Squeezebox Radio (official firmware 7.x)
- Squeezebox Radio (community firmware 8.x)
- Squeezebox Touch (official firmware 7.x)
- Squeezebox Touch (community firmware 8.x)
- SB Classic/Boom/Receiver/Transporter
- Other (eg. Raspberry Pi based)
------------------------------------------------------------------------
I apologize if this post is off-topic but there is a chance that it
might be related in a tangential way. About 3 months ago, a user of the
Denon AVR plugin that I co-maintain reported strange behavior and
provided a debug log illustrating it. It appeared that the problem was
caused by the notification callback in the plugin being called for
events from players other than those for which the plugin had registered
(subscribed) the callback --- a condition that the code was completely
unprepared to handle. Upon further research, it was discovered that the
players in questions were ones that had been synched with a player that
WAS registered for the events. I was able to easily recreate the
situation and coded a fix (workaround?) that was fairly simple but added
some cpu overhead --- add and maintain an array of player id's that are
currently registered for the notifications and ignore any event
callbacks from unregistered players. However, it seemed strange to me at
the time that a problem with as common a use case as this should
suddenly appear in a plugin that had been in fairly widespread use for
over 10 years. I also had doubts about whether or not the behavior was
intentional/correct after looking at the LMS doc pages. So here's my
question:
When registering a notification callback for a particular player
($client), e.g.
Code:
--------------------
Slim::Control::Request::subscribe( \&commandCallback, [['power', 'play',
'playlist', 'pause', 'mixer']], $client);
--------------------
is it expected/intended that the callback should also be invoked for
other players that are synched with that player?
Sam
------------------------------------------------------------------------
SamY's Profile: http://forums.slimdevices.com/member.php?userid=63495
View this thread: http://forums.slimdevices.com/showthread.php?t=116649
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta