PDA

View Full Version : Flash CS3: Sound sometimes doesn't compress to mp3 properly


KWarp
08-07-2008, 04:24 AM
The keyword is "sometimes".

I recompiled a Flash 8 project in Flash CS3 recently and noticed that some of the sound effects sounded like a painful chippy mess. It sounded like the mp3 bitrate was at the lowest Flash outputs (16kbps). I compiled again, and all the problems went away. Then I compiled again and different sounds went chippy!

Fine, whatever. Maybe it's a glitch between project versions.

This week I built a project from the ground up in Flash CS3 with AS 3.0 . The chippy compression is still there and happens most of the time. Both my global and local compression settings for sound clips are mp3, 160kbps, Stereo. What's going on???

Flash 9.0
Mac OS X 10.5.4

atomic
08-07-2008, 05:16 AM
Make sure your .mp3's are encoded at a multiple of 11.025, 22.05 or 44.1 kHz. The Macromedia Flash player has a hard time working with audio that isn’t encoded at a multiple of 11.025 kHz.

Since you're on a Mac, your mp3's could be encoded at 32, 36, 38...etc. kHz.

KWarp
08-07-2008, 05:28 AM
The only sound file I've loaded into my new project so far was actually a .wav file. Audacity exported it as "Signed 16 bit PCM". Flash's Sound Properties tells me the file is "44kHz 16 bit Stereo 1.1 s 185kB". Any ideas?

atomic
08-07-2008, 05:39 AM
Why did you say that Both my global and local compression settings for sound clips are mp3, 160kbps, Stereo. then?
If it's a .wav, isn't your Compression Setting set to Default?

KWarp
08-07-2008, 05:48 AM
The file I imported is a .wav. When the swf is compiled, it will be an mp3.

The sound's export settings are as follows:
Compression: MP3
Preprocessing: Stereo
Bit rate: 160kbps
Quality: Best

Just to make sure the "Default" setting doesn't interfere:
In Publish Settings > Flash
Audio Stream: MP3, 160 kbps, Stereo
Audio Event: MP3, 160 kbps, Stereo

atomic
08-07-2008, 05:51 AM
But why are you changing the compression from default to MP3?

KWarp
08-07-2008, 06:05 AM
Because I feel that manually setting each individual sound clip's compression settings is more likely to get the compression correct.

Just for kicks I changed the compression setting to default. It still gives me a chippy mess.

atomic
08-07-2008, 06:14 AM
Then I guess you should throw your Mac out the window, and get a PC! ;)

KWarp
08-10-2008, 06:10 AM
You forget that Macs can run Windows. :rolleyes:

I'll test compiling on my Windows partition a bit later. But first I should ask, are there any Flash CS3 updates? (i.e. 9.1, 9.2)