Flasher Archive

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


Subject: Re: FLASH: URGENT - Need help with sound in FLASH 4
From: Kristopher Schultz
Date: Sat, 18 Nov 2000 01:04:43 GMT

OK, here we go! Audio is one of the most misunderstood aspects in any
multimedia production - by veterans and newbies alike. So let's see if I can
offer a little information to help without turning it into a dissertation...

First of all, what you should know is that when you start creating a new
Flash file, it defaults to compressing sounds in a certain way. Flash offers
2 different basic types of audio compression with many variations of each.
The default is MP3 audio set to 16 kilobits per second (the lowest data rate
that Flash allows) with the "quality" set to "fast" (this setting sacrifices
a bit of audio quality in order to export the .SWF more quickly from Flash).
The other type of compression that Flash offers is ADPCM compression with is
generally a little poorer than MP3 (although a little less taxing when
playing back on slower computers).

You can modify the audio compression settings in one of 3 places. 1) You can
change them under the "Publish Settings..." (these are used when you do a
"Test Movie"; 2) you can choose "Export" from the FILE menu and it gives you
an opportunity to change the settings; 3) You can change them on a
sound-by-sound basis by double-clicking the sound in the Library.

Before I tell you how to choose which settings to use you need to understand
the difference between sounds set to "stream" and those triggered by "start"
or "event". Yes, the difference when authoring is that you can scrub sounds
that are set to stream, but that isn't the real beauty to this method. See,
when you trigger sounds using the other two methods the sound must be
completely downloaded to the user's computer before it will begin to play.
This works great for short sounds but not for longer ones. But, as the name
implies, sounds set to "stream" actually stream WHILE they're playing. Only
the first 5 sec. (by default) have to be buffered to the user's computer
before playback starts. But because they stream they ABSOLUTELY CAN NOT be
compressed using a data rate that is higher than what the user's modem can
transfer in real time. So in other words you've got to stick to an audio
data rate of 24 kbps or lower for real world 56k modem delivery. But what
this DOES mean is that streaming sounds can be as long as you want and the
user won't have to wait for them! [note: the other advantage of using
streaming sound is that it is the only way to ensure exact synchronization
between your animation and the audio - this is because if the animation
starts falling behind, Flash will drop frames of the animation to keep up
with the streaming audio]

Now to dispell some of the myths that Rodney presented (no offense,
Rodney)...First, I'll say that Rodney's suggestion to possibly reduce or
eliminate the extreem upper and lower frequencies of the sound can SOMETIMES
help the percieved quality (although, this is NOT called "compression" as he
was refering to it - compression is done with a compressor, reducing the
frequecy spectrum is done with EQ). Actual audio signal compression (I'm NOT
talking about FILE compression) can also help. Audio compression can be done
though hardware boxes or software and what it does is basically "fatten up"
the sound by raising the amplitude of the quieter parts of an audio wave
giving the perception of an overall louder sound. Although these techniques
may SLIGHTLY improve the audio quality, doing either of these things WILL
NOT REDUCE THE FILE SIZE OF YOUR AUDIO!!! People tend to think that
"simpler" sounds will compress more. This is just not the case with most
compression schemes. Remember how I said you had to pick a data rate for
your sound? Well, it doesn't matter if your encoding 10 sec. of Metallica or
10 sec. of pure silence - if you've chosen 16kb/s the file is going to end
up being 160 kilobits big.

Now, to improve the quality of the sound in your situation, I'd hold off on
reducing the frequency range and running it through a compressor until
you've tried messing with the compression settings INSIDE of Flash a little
bit. Again, if you're using audio set to stream and it has to be viewed by
56k modem users, I'd try the 24kb/s MP3 data rate and DEFINITELY change that
"quality" selection to "High" (it will only improve the quality of the sound
and won't effect performance at all for the end user). You'll need to use a
lower data rate if people with slower modems will be viewing it OR if you
have a lot of large (filesize-wise) animation elements that will be also
downloading while the audio is playing.

Did I mention that I worked as an audio engineer before entering the
multimedia development field? If anyone has anymore questions about audio as
it relates to multimedia, please feel free to ask me on or off list! It's
one of my favorite things to talk about, and it's kind of my own personal
mission to further the cause of better audio on the Web!


kristopher schultz - mills james productions
programming : compression : management

@ www.millsjames.com - columbus, ohio


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: URGENT - Need help with sound, Rodney

Replies
  Re: FLASH: URGENT - Need help with sound, Rodney

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