KVerb wrote: 
> Thanks for the reply. For my use-case I'd prefer to ignore the request
> over leaving the SBs to play music at volume 70 for instance. Could you
> point me in the right direction on how to achieve that? I have a good
> understanding of programming in general but no experience with perl.

You'd have to introduce a global variable to be used for locking (e.g.
$Plugins::LMSannounce::Plugin::globalProcessingLock). Check and set in
handleJSONP(), unset in playlistStoppedCallback() and anywhere the
plugin may stop processing due to error conditions (probably all
announce* subs)
It would make sense to make this a configurable behaviour. Maybe I'll
release a version including this in the future.



'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | TUI |
Playlist Editor / Generator | Music Classification | Similar Music |
Announce | EventTrigger | DB Optimizer | Image Enhancer | Chiptunes |
LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=109096

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to