by excelblue (Mark Lu) (4 Submissions)
Category: Sound/MP3
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Requires FMOD.DLL. Download at https://www.fmod.org before using.
This is a simple informative player that plays MOD, IT, XM, and S3M files. If you don't know them, it is a good thing to know for game programmers. These types of files are MP3 quality files with no compression, but a little bit more size compared to a MIDI file. It is basicallly a set of samples and commands of when to play them, and transposition so they can make notes. I never seen one made in VB, so I made it just to see if it is possible. I spent only 10min on version one, and 5hours on bug fixes. Overall, it is just some API with FMOD.DLL. The system needs to be shutdown before using. I used the API for the Opening Dialog as they say the less custom controls, the better (this one uses none). I wrote this all by myself. This does not display the length of the song. It is because you need to fastfoward play this as fast as possible and sending the sound to nowhere to find out the length. The format is very complicated, more complicated than wav and midi multiplied as they made the format weird. Like Rows 1,3 at the beginning, 2,4 at the end, 5,7 before 1,3, and 4,6 after 2,4. That makes it almost impossble to load.
Side Effects
Autodetection doesn't work if file extension is wrong.