Skip to content
/ raw2gba Public
forked from IanFinlayson/raw2gba

Converts raw files into an array of C bytes (can be used for loading sound files into the Game Boy Advance)

License

Notifications You must be signed in to change notification settings

J3G0/raw2gba

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raw2gba

Converts raw files into an array of C bytes (can be used for loading sound files into the Game Boy Advance).

This program only relies on gcc. To compile, run make. However in this repo, I included a compiled .exe for windows users.

Usage

First of all you need to convert the audio file (.mp3, .wav,...) to a .raw file. The program I used is Switch Sound File Converter.

Select the .raw file extention and use the signed 8-bit mode when converting your audio. Otherwise you'll find yourself with distorted audio on the GBA.

To convert a raw file to a .h file for usage in programming for a GBA you use the following command:

raw2gba sound.raw

(Path variables might need to be added if an error occurs)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Ian Finlayson started this.
  • Used in The Unfair Game.
  • Thanks to the people who made the music and sound effects that are used. Links are in the respectable .h files in the Sounds folder. These are left in there to act as an example.

About

Converts raw files into an array of C bytes (can be used for loading sound files into the Game Boy Advance)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%