Author: awy
Date: Sun Oct 12 05:29:44 2008
New Revision: 3108

URL: http://svn.slimdevices.com?rev=3108&root=Jive&view=rev
Log:
Auto-pause on output-underrun, and stop on underrun.

Modified:
    7.3/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua

Modified: 7.3/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua?rev=3108&root=Jive&r1=3107&r2=3108&view=diff
==============================================================================
--- 7.3/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua 
(original)
+++ 7.3/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua Sun Oct 
12 05:29:44 2008
@@ -152,6 +152,7 @@
                        self.sentDecoderUnderrunEvent then
 
                        log:info("status AUDIO UNDERRUN")
+                       Decode:stop() -- XXX need to let last buffer play out 
before stop
                        self:sendStatus(status, "STMu")
 
                        self.sentAudioUnderrunEvent = true
@@ -160,6 +161,7 @@
                        self.stream then
 
                        log:info("status OUTPUT UNDERRUN")
+                       Decode:pause(0) -- auto-pause to prevent glitches
                        self:sendStatus(status, "STMo")
 
                        self.sentOutputUnderrunEvent = true

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to