bugGnash - The GNU Flash player - Bugs: bug #23020, onSoundComplete for embedded...

 
 

bug #23020: onSoundComplete for embedded sounds not implemented

Submitter:  None
Submitted:  Tue 22 Apr 2008 03:52:07 PM UTC
   
 
Category:  core Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  strk
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 19 May 2011 02:43:27 PM UTC, comment #7: 

fd373fe adds an additional test in the existing eventSoundTest1 so we'd have at least one failure when breaking this case

Sandro Santilli <strk>
Group Member
Thu 19 May 2011 02:33:19 PM UTC, comment #6: 

Ok, the eventSoundTest1 test doesn't pass because everytime our Sound object checks, it finds the sound playing. This is because we're starting a new sound before the previous is finished.

Indeed we should be calling onSoundComplete for each sound instance, while we're doing it once when no instances are playing of the sounds we're attached to.

Sandro Santilli <strk>
Group Member
Thu 19 May 2011 12:19:58 PM UTC, comment #5: 

Actually, let's make it "ready for test" until we have an automated test. The eventSoundTest1.swf doesn't wait enough for the onSoundComplete event to arrive. Granted, we're not doing it exactly like we should, but it's a pity there's no test ensuring games_yokoruta.swf succeeds ...

Sandro Santilli <strk>
Group Member
Thu 19 May 2011 12:08:48 PM UTC, comment #4: 

Fixed with ae88d85.
Surprisingly there are no XPASS in testsuite :/

Sandro Santilli <strk>
Group Member
Wed 10 Dec 2008 12:26:04 PM UTC, comment #3: 

It is an 'internal' sound, so no probe timer is ever started for it.

Benjamin Wolsey <bwy>
Group Member
Wed 10 Dec 2008 11:45:18 AM UTC, comment #2: 

This is primarily a problem with onSoundComplete complete not being called.

The function is this:

function clearBGPlay() {
  mainBG.stop();
  battleBG.stop();
  clearBG.start();
  clearBG.onSoundComplete = function () {
    trace('onSoundComplete 1');
    if( (_global.SSFlg==false) ) {
      _parent.play();
    } else {
      _parent.gotoAndPlay('Sg_select');
    }
  };
}

I've attached a tracing version (or rather one with the original traces dropped and my own ones put it), which shows that this onSoundComplete is never called. Haven't looked at why yet.

It's supposed to go to frame 27 (label: Sg12) when the sound is complete.

(file #17015)

Benjamin Wolsey <bwy>
Group Member
Fri 16 May 2008 03:48:14 PM UTC, comment #1: 

zou, seems timeline related (gotoframe)

Sandro Santilli <strk>
Group Member
Tue 22 Apr 2008 03:52:07 PM UTC, original submission:  

I found some gnash bugs in an SWF6 game which you can find at http://208.116.9.205/1/graphics/games/games_yokoruta.swf

1: When you complete the level and hear the win music, the background music should stop playing as it does in adobe.
2: In adobe you get transported to level 2 without pressing anything) but in gnash it seems you can't get past the first level at all.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #17015:  games_yokoruta.swf added by bwy (237KiB - application/x-shockwave-flash)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bwy (Updated the item)
  • -email is unavailable- added by strk
  • -email is unavailable- added by strk (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-05-19 strk StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2011-05-19 strk StatusFixed Ready For Test
        Open/ClosedClosed Open
    2011-05-19 strk StatusConfirmed Fixed
        Assigned toNone strk
        Open/ClosedOpen Closed
    2009-05-20 bwy SummarySWF6 sound and engine glitches onSoundComplete for embedded sounds not implemented
    2008-12-10 bwy Attached File- Added games_yokoruta.swf, #17015
    2008-05-16 strk Carbon-Copy- Added zou
    2008-04-22 strk CategoryNone core
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code