gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #33323] Gnash plays sound in Flash7 file un-continua


From: Nachanon Vetjasit
Subject: [Gnash-commit] [bug #33323] Gnash plays sound in Flash7 file un-continually
Date: Sat, 03 Mar 2012 15:16:00 +0000
User-agent: Opera/9.63 (Windows ME; U; en) Presto/2.1.1

Follow-up Comment #12, bug #33323 (project gnash):

Now I got a different way to pinpoint this.

I looked at the original sound used in making of gears.swf, it virtually has
no silence period.
But sound extracted from gears.swf, I found out that it has ~100 ms slience
gap at the beginning and ending.

When I compare this extracted sound side-by-side with ones recorded during
gnash (0.8.10) playing gears.swf;
it matched, thus gnash is playing a raw sound data (which includes spaces).

So I manually applied SeekSamples and SoundSampleCount on the extracted sound
data.
I found that this precisely clips the gap out both on the start and at the
end.
This clipped sound played continuously, like Macromedia Flash Player do.


Summed up: I think SeekSamples+SoundSampleCount functionality were needed to
play the sound correctly.




Note #1: The attached file (gears-sounds.zip) contains
peak-graph of sounds and comparision in my experiment (sounds.png),
the original sound (gears-original.wav),
extracted sound (gears-extracted.wav),
looped version of extracted sound (gears-extracted.loop.wav),
clipped (applied SeekSamples+SoundSampleCount) version of extracted sound
(gears-clipped.wav),
clipped and looped version of extracted sound (gears-clipped.loop.wav) aka.
the final result.

Note #2: These experiments were done under sound editor, which allowed me to
do them only down to millisecond precision, enough to demonstrate what these
parameters do, but it's not sample-by-sample accurate.

(file #25257)
    _______________________________________________________

Additional Item Attachment:

File name: gears-sounds.zip               Size:1023 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33323>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]