franklingalaxy wrote:Hey guys, can anyone explain to me how to replace the MP3 Music from older versions in SMBX 1.4.2 to Standard music? I don't want these MIDI and SPC files! Pls ANYONE help
Are you used a customized music pack? For your case 5438A38A would implement support of music.ini and sounds.ini files (like in the PGE Engine and in the LunaLUA-SMBX) to allow global/episode/level customization of musics and sounds (anyway, 5438A38A already made support of per-episode customization of sounds with special dialog for that). music.ini/sounds.ini allows you to use any musics and sounds instead of pre-defined.
My explanation why are default MP3's are replaced with SPC's and MIDIs?Reason 1:
Total size of archive. With MP3's of BAD quality size of archive is 40~80 MB, with MP3's of HIGH quality size of archive is ~240 MB). With SPC/MIDI music total size of archive is 19 MB!Reason 2:
Quality. High compression level MP3's are has VERY bad quality ("Toilet" quality). For comparison, 16-bit stereo raw audio data with 44100 hz sample rate in 1 min. has 10584000 bytes (~10,1 MB), therefore used a compression formats (MP3/OGG/FLAC/etc.) to reduce it's size. OGG is much better replacement of MP3 as audio data compression format because provides higher quality with smaller size than MP3 of similar compression level.
SPC file contains ADPCM samples and ASM code of "how play music". Every MIDI file contains a notes data. Every SPC file has 64 KB (because it's a memory dump of Sony SPC700 chip). MIDI files are can have any number of notes data. Usually MIDI files are has 8~80 KB size, but if you want, you can put more notes (for example, I know a MIDI file with 1 hour of music and it has 1 MB size!). SPC and MIDI are has NO audio data. Instead there are contains a rules WHICH audio data needed to generate in real time. SPC's are playing on special SPC700 emulator which executes SPC ASM code and generates audio data. MIDI are can have different sound in different synthesisers and audio cards. In modern Windows most used is software WaveTable synthesiser named as "MS Sound Convas" which uses a "Roland Sound Convas" bank. In some cases are lots of SF2-based software synthesisers (for example, BASSMIDI). WaveTable synthesiser (WT) is based on pre-recorded samples mixing. Old sound cards are had Yamaha OPL chips which are implements a Frequency Modulation synthesiser (FM) - a synthesiser which generates music sound with special formulas. ADLMIDI - is a software implementation of FM Synthesis which used in SDL Mixer X. FM Synthesis can generated pure and beutiful sound (but for cases when MIDI file is written correctly and following the GM standard. If MIDI-file follows another standards (XG, GS, KORG, etc.), there are may have troubles with drums if used customized drum channels [any other channels except 10'th channel for drums]).