[Laszlo-dev] For Review: Change 20081001-maxcarlson-s Summary: Make streaming mp3 audio act more like a movieclip
andre.bargull at udo.edu
Thu Oct 2 01:53:10 PDT 2008
As described in LzSprite#soundCompleteHandler(..):
> // SoundChannel.position does not stop exactly at Sound.length,
> // there are a few ms difference between both values.
> // So instead of comparing 'frame' == 'totalframes',
> // we'll send the 'lastframe'-event when playback stopped.
So, after "Event.SOUND_COMPLETE" was dispatched, you should set "frame"
to "totalframes" and fire the resourceevent(). (That way the manual call
to soundFrameHandler() in soundCompleteHandler() can be removed.)
On 10/2/2008 3:15 AM, Max Carlson wrote:
> Change 20081001-maxcarlson-s by maxcarlson at Bank on 2008-10-01 17:47:40 PDT
> in /Users/maxcarlson/openlaszlo/trunk-clean
> for http://svn.openlaszlo.org/openlaszlo/trunk
> Summary: Make streaming mp3 audio act more like a movieclip
> Bugs Fixed: LPP-7051 - SWF8/9: Small Apps: Music demo cannot be replayed
> Technical Reviewer: andre.bargull at udo.edu
> QA Reviewer: promanik
> Documentation: Streaming mp3 audio will now start over at the beginning
> after the end of the clip has been reached, unless play() is passed a
> specific value.
> Details: LzSoundMC.as - Start at the beginning if we're not seeking to a
> specific frame and we're at the end already. Pass a flag from
> gotoAndPlay() to play() so we know when to auto seek.
> LzSprite.as - Track totalframes in the sprite. Start at the beginning
> if we're not seeking to a specific frame and we're at the end already.
> Don't allow seeking past the end.
> Tests: See LPP-7051. Also fixes seeking past the end in swf9.
> M WEB-INF/lps/lfc/kernel/swf/LzSoundMC.as
> M WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
More information about the Laszlo-dev