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


bug #35547: Gnash seeks on an event sound incorrectly

Submitter:  Nutchanon Wetchasit <nachanon>
Submitted:  Thu 16 Feb 2012 02:37:22 PM UTC
Category:  sound Severity:  3 - Normal
Release:  0.8.9 Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

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)

Nutchanon Wetchasit <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);

trace("sound: starting");

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.

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.

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).

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

Nutchanon Wetchasit <nachanon>


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

Attach Files:

Attached Files
file #25381:  soundstartposition-amplitude.swf added by nachanon (17KiB - application/x-shockwave-flash - New test flash file (Flash 7))
file #25072:  soundstart-position.zip added by nachanon (30KiB - 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
  • -email is unavailable- added by strk (Updated the item)
  • -email is unavailable- added by nachanon (Submitted 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-12 strk CategoryNone sound
    2012-03-17 nachanon Attached File- Added soundstartposition-amplitude.swf, #25381
    2012-02-16 nachanon Attached File- Added soundstart-position.zip, #25072

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code