Tips for Audio Compression?

Get help using Construct 2

Post » Tue May 14, 2013 12:44 am

Hey everyone,

Some of you may know a classic game called Zelda: Ocarina of Time. You may also know that this game is packed with music. One hour and seventeen minutes to be exact. That's not including the sound effects.

Guess how much room was on a N64 cartridge? 64 megabytes!
Guess how big Zelda: OOT was? 26.4 megabytes!

So we have all the art assets, programming code, sound effects and the one hour seventeen minutes of music all packed into 26.4 megabytes...

HOW THE HELL DID NINTENDO DO THIS?!

Gah, anyways, this was all ten to fifteen years ago. Are there any informed people out there, who may have a way of creating such small sound/music files? Bit-rate is the first obvious option but the quality is beyond garbage and is nothing compared to what was pulled off with N64 games.Tekniko2013-05-14 05:27:29
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Tue May 14, 2013 5:27 am

*Bump*
B
50
S
14
G
12
Posts: 813
Reputation: 16,764

Post » Tue May 14, 2013 5:46 am

could it be that they're using MIDI?
B
8
S
2
Posts: 48
Reputation: 1,098

Post » Tue May 14, 2013 6:53 am

http://digitalfantasy.angelfire.com/n64-hardware-specifications.html

Seems likely that they did generate their own sounds via a separate processor.
ImageImageImage
B
67
S
19
G
123
Posts: 3,210
Reputation: 73,907

Post » Tue May 14, 2013 7:31 am

It was essentially a sequencer/sampler, just like the SNES except more advanced. They actually still use them today in many games (mostly console games) or hybridized versions that are part mp3, part sequenced. It's how they keep the filesize down and allow for dynamically changing music. They pretty much had only one sample per instrument for the most part, and that one sample was pitch shifted to give the entire spectrum of notes. Pretty cool stuff. MOD Plug Tracker is a pretty good representation of the concept. It's also what we're using for our next game, which is going to be more SNES style.

The other way they keep filesizes down is by making the songs last only so long. Most of the tracks you hear in OOT and many other console games (even today) are usually around a minute, a minute and a half, maybe 2 minutes. Very rarely did you ever find tracks that had longer than 2 minute loops.

The way they made them sound much longer than that was through compositional trickery: each section in the songs only last a few bars at most before they switched to a transition section that would lead into a brand new section. Each section had their own quick identifiable hooks.

Now Construct 2 can't handle MIDI or MOD files (yet!) but you can still make your music/sound files take up as little space as possible through smart composition. In Happiness! we composed 16 music tracks, which was separated into around 84 files, including the ogg, m4a, and wav formats and separating most of the tracks into "intros" and "loops". All in all, the 84 files take 95.9 MB. 75.5 MB of that are the 28 uncompressed wav files.

Fortunately, Scirra thought ahead and Construct games only load audio files when you need to use them, and you also have plenty of options to control preloading audio files.

I don't recommend nixing the wav files, for compatibility reasons. Ogg is the best format though, best compression while maintaining the best quality. And nevernevernevernever mp3.TL222013-05-14 07:34:26
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Tue May 14, 2013 8:29 am

It still boggles my mind how they can have so much music in such a small game.
B
50
S
14
G
12
Posts: 813
Reputation: 16,764


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, abdalghani, Ethan, Marxally, Naightwolf and 26 guests