Old Flash game audio
How to compress a song so that it sounds like it came from the internet of the 2000s.
Posted:
November 27, 2021
If you grew up playing Flash games you may have heard this song:
It's the song from the classic The World's Hardest Game, a true hit in computer classes around the world. Just listening to that song surely brings back many memories, and this is a feeling shared by many others who lived through that same era of gaming! Seems like many zoomers have some sort of bizarre obsession with this style of electronic acid music that sounds like it's being played through the speakers of a CRT PC. Nostalgia is a strange beast.
If you have never heard the original, uncompressed version of the song, here it is:
It's like cleaning 30 years of wax out your ear.
This got me thinking: why does this happen? Why did old Flash games have this iconic sound? And how can I replicate this sound for nostalgia's sake?
I think the reason why this happens is pretty obvious: for the time, Flash games and animations were super heavy. All optimization was welcome, and audio files were especially problematic. In order to encourage light downloads, to make the program more accessible, and not force the user to compress the audio files themselves, the program did this automatically by default. This also explains why so many games had these compression artifacts: the app's default behavior was to compress the audio to absurd bitrates. (And apparently it still is?? Wtf Adobe)
To replicate this effect, the first thing I needed to do was just some research. To no one's surprise, there's not a lot of documentation on exactly what settings Flash used to make its audio so static-y. So I had to download an old Flash version (Macromedia Flash MX 2004) and try not to catch a virus on the way.
After having a bout of nostalgia seeing these old templates I created a new document. All I wanted was to see what audio settings the program used, and I quickly found it:
I decided to test it by putting the music from the Hardest Game, which I downloaded from Newgrounds, into the project and exporting it as an SWF file. Found out that I needed to click "Override sound settings" first. The result was unexpected....... I heard a crappy compressed version of the song, like in the game, just the way I wanted! Who woulda thunk?
Maybe it sounds obvious but I really didn't expect this to work first try.
Cool, we have an SWF file with a compressed song inside. Now, how do we get the file out so we can use it? As I understand it, you can't open SWF files using Flash MX 2004, it can't do decompilation, so another program is needed. For that, I used JPEXS Free Flash Decompiler. This program lets you see and extract all the contents of an SWF file.
Easy then, just drag the SWF file into the app and find the sound in the Sounds folder. After selecting it, I just click Export Selection and save it wherever I want.
To compress a sound to death, you just need to:
At the end of this whole process you will have a super compressed, old Flash game style song.
There's also another way in which you can get a similar effect... just not the same, which involves using an online converter:
When the conversion is finished, your music should start downloading immediately.