Author: bklaas
Date: Wed May 18 09:46:35 2011
New Revision: 9443
URL: http://svn.slimdevices.com/jive?rev=9443&view=rev
Log:
Fixed Bug: 16100
Description: do not call _setEndpoint() in SqueezeboxBabyApplet when powerState
changes (e.g. ACTIVE->IDLE) while player's alarm is in active or snooze state
this fixes the problem of the audio getting pumped into the headphones
erroneously at the time of an alarm
Modified:
7.6/trunk/squeezeplay/src/squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua
Modified:
7.6/trunk/squeezeplay/src/squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua
URL:
http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua?rev=9443&r1=9442&r2=9443&view=diff
==============================================================================
---
7.6/trunk/squeezeplay/src/squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua
(original)
+++
7.6/trunk/squeezeplay/src/squeezeplay_baby/share/applets/SqueezeboxBaby/SqueezeboxBabyApplet.lua
Wed May 18 09:46:35 2011
@@ -989,7 +989,14 @@
self.powerState = state
- _setEndpoint(self)
+ -- Bug 16100, only setEndpoint if alarm is not active
+ if self.player and (self.player:getAlarmState() == 'active' or
self.player:getAlarmState() == 'snooze') then
+ -- leave audio coming out speaker when alarm is active or in
snooze (alarm forces output out speaker)
+ log:info('Alarm either in progress or snooze, do not call
_setEndpoint()')
+ else
+ _setEndpoint(self)
+ end
+
_setBrightness(self, self.lcdBrightness)
if (poweroff) then
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins