I just wanted to change my music in GDT, and I was too bored to just switch the files which is many times easier, so I wrote a API-like mod that allows other mods to easily change in-game music.
##But… how?
Well, It takes the piece of code that sets all the background music, and wraps easy-to-use functions around it to allow other fellow modders to easily change the music which is playing.
##And how do I use it?
It will add an array with only two functions.
SoundAPI.addMusic(file, stage) //file = Filename/File-location, stage = Required office to be played in. Adds music to the bgm playlist.
Sound.erasePrevious() //Erases all existing background music from the play list.
--- AS OF UPCOMING 0.0.2, SoundAPI.changeTitle WILL BE REPLACED WITH SoundAPI.changeSound(fx, file) //Replaces in-game sounds.
Currently only the title music and the background music.
I have seen the possibility for ‘sfx’ to be changed too. Will add that now as I just noticed how easy it was to do. You need to use exact names to change them though.