GP32 How To Convert .mod Files To .raw Or .c


jcbnetwork

Member
Joined
Aug 10, 2003
Messages
252
Location
New York City
Website
Visit site
One of Mr. Mirko's SDK examples example.sound_mod_mixer plays 2 different mod files. The modfiles are included as modfile1.c and modfile2.c

I would like to replace the two mod files with my own

Can someone tell me what I have to do to convert from .MOD to .C ?

Thanx,
JCB
 
All he did was take the raw file, and convert it into a HUGE char array, where each entry of the array is one byte of the actual file.

Think of it as the ghetto way to include a binary file into your program. ;)
 
I've also written a windows app that does this. I will submit it to EDs file archive because it is quite useful.

It allows you to do a few neat things, like:
1) Enter the name of the final array
2) Specify how many numbers on each line in the file
3) Pad numbers to a specified number of characters (with either spaces or zeros)
4) Add optional padding at the end (zeros) to go to nearest boundary.
5) Choose save location with normal save dialog!
 
Back
Top