bugGnash - The GNU Flash player - Bugs: bug #35547, Gnash seeks on an event sound...

 
 

bug #35547: Gnash seeks on an event sound incorrectly

Submitted by:  Nachanon Vetjasit <nachanon>
Submitted on:  Thu 16 Feb 2012 02:37:22 PM UTC  
 
Category: soundSeverity: 3 - Normal
Release: 0.8.9Status: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 17 Mar 2012 03:14:39 PM UTC, comment #1:

I've changed test file a bit; changed sound volume on each part to make difference obvious,
and fix repeating to 8 time to avoid bug #35545 (zero repeat issue).

New test file: soundstartposition-amplitude.swf

Sound information from ming's listswf:

Offset: 25 (0x0019)
Block type: 14 (SWF_DEFINESOUND)
Block length: 19353

CharacterID: 1
SoundFormat: MP3
SoundRate: 22 KHz
SoundSize: 16-bit
SoundType: Stereo
SoundSampleCount: 50710
Mp3: SeekSamples 1670

Video result from Flash Player 7: http://www.mediafire.com/?f5rv77ph8n3o1v5
(Two pitch were played, no gap in loop)

Video result from Gnash 0.8.10: http://www.mediafire.com/?sdii19r9674vwd1
(Three pitch were played, and with slight gap in loop)

Modified test file (also attatched here): http://www.mediafire.com/?j093k9aaww4ejpa

(file #25381)

Nachanon Vetjasit <nachanon>
Thu 16 Feb 2012 02:37:22 PM UTC, original submission:

Hello, I've used Gnash 0.8.9 and 0.8.10 to play Flash 7 file that tries to play sound within ActionScript 2.0, using the code:

snd=new Sound(this);
snd.attachSound("beep-note");

trace("sound: starting");
snd.start(1.0,0);

It supposed to play sound from offset '1.0' sec with repeat value '0' (which Flash Player will treat it like a repeat value '1'; playing the sound once)

Which this sound has three part:
0.000-1.000 sec: the sound of C5 note (low pitch)
1.000-1.300 sec: the sound of C7 note (high pitch)
1.300-2.300 sec: the sound of C6 note (middle pitch)

Specifying offset '1.0' sec was supposed to skip the first part (low pitch) completely, and playing from the start of second part (high pitch) to the end (middle pitch).

But on Gnash, you will hear the first part slipped through, which means Gnash was seeking to about ~0.1 sec earlier than the intended position.

http://www.mediafire.com/download.php?7gcy3zvm7ljo4dc
This is a 'correct' result from Macromedia Flash Player 7
You will notice that sound was high pitch followed by middle pitch, and was played only once.

http://www.mediafire.com/download.php?f75tcb8hmn8vyvn
This is a video result from Gnash 0.8.10
You will notice that you could hear a bit of low pitch (the first part) sound on the start.
And sound was looped infinitely, which was a symptom of bug #35545 (zero-repeat issue), with a gap between loop which likely to be a symptom of bug #24481 (actionscript sound loop gap).

http://www.mediafire.com/download.php?m6it6k36kha5gx5
This is my dummy flash file (created from Flash MX 2004), accompanied with source code and the sound, also attached here.

Gnash: gnash_0.8.9-1~lenny and gnash_0.8.10-1~lenny from getgnash.org APT repository (both give exactly same result)
System: Debian GNU/Linux 5.0 Lenny on i386

Nachanon Vetjasit <nachanon>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #25381:  soundstartposition-amplitude.swf added by nachanon (17kB - application/x-shockwave-flash - New test flash file (Flash 7))
file #25072:  soundstart-position.zip added by nachanon (30kB - application/zip - Dummy test flash file (Flash 7))

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Updated the item)
  • -unavailable- added by nachanon (Submitted 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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 Jun 2012 06:01:58 PM UTCstrkCategoryNone=>sound
    Sat 17 Mar 2012 03:10:00 PM UTCnachanonAttached File-=>Added soundstartposition-amplitude.swf, #25381
    Thu 16 Feb 2012 02:37:22 PM UTCnachanonAttached File-=>Added soundstart-position.zip, #25072

    Back to the top


    Powered by Savane 3.1-cleanup