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

 
 

bug #23020: onSoundComplete for embedded sounds not implemented

Submitted by:  None
Submitted on:  Tue 22 Apr 2008 03:52:07 PM UTC  
 
Category: coreSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
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>
Project MemberIn charge of this item.
Thu 19 May 2011 12:08:48 PM UTC, comment #4:

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

Sandro Santilli <strk>
Project MemberIn charge of this item.
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>
Project 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>
Project Member
Fri 16 May 2008 03:48:14 PM UTC, comment #1:

zou, seems timeline related (gotoframe)

Sandro Santilli <strk>
Project MemberIn charge of this item.
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 File(s):
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 19 May 2011 02:43:27 PM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 19 May 2011 12:19:58 PM UTCstrkStatusFixed=>Ready For Test
      Open/ClosedClosed=>Open
    Thu 19 May 2011 12:08:48 PM UTCstrkStatusConfirmed=>Fixed
      Assigned toNone=>strk
      Open/ClosedOpen=>Closed
    Wed 20 May 2009 12:54:57 PM UTCbwySummarySWF6 sound and engine glitches=>onSoundComplete for embedded sounds not implemented
    Wed 10 Dec 2008 11:45:18 AM UTCbwyAttached File-=>Added games_yokoruta.swf, #17015
    Fri 16 May 2008 03:48:14 PM UTCstrkCarbon-Copy-=>Added zou
    Tue 22 Apr 2008 07:42:07 PM UTCstrkCategoryNone=>core
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup