Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Streaming sound increases .swf size
From: Troy M. Gilbert
Date: Tue, 1 Jun 1999 06:38:26 +0100

>With one single sound set to stream, the .swf size was 132k
>with the same sound set to start, the .swf size was 52k
>
>Anyone have an explanation?

Sure do. Here goes (sorry if this gets too technical):

With sounds set to "Start" (or anything other than "Stream"), the sound
clip is stored only once in the SWF file. That's why you can set it to
repeat hundreds of times, use it over and over in different places, etc.
and only increase the file size by a few bytes here and there.

Streaming sounds, on the other hand, are encoded along side each frame's
visual data. For example, if you have a movie playing at 10 frames per
second, then each frame has 1/10th of a second of audio attached to it
(assuming there is audio playing at that point in the timeline). It doesn't
matter if that audio has been played hundred times before hand, it is
stored in the file. This is how Flash ensures syncrhonization with the
animation. More efficient methods exist, but this allows for a smaller
player (its simpler).

To put it in terms similar to Flash graphics: Start sounds are like
symbols, you can reuse them all you want with negligible impact to the file
size. Stream sounds are similar to graphics that aren't converted to
symbols, each time you use them they are stored byte-for-byte into the SWF
file.

Did I explain this good enough? If not, prod me with more questions and
hopefully I can make it clear.

Troy.





------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Streaming sound increases .sw, Ant-1

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]