A library to allow code modders to import common audio file formats into AudioClips that are playable in-game.
There is only one method in the API.
AudioImportLib.API.LoadAudioClip(string absolutePathToFile, bool dontUnloadUnusedAsset = true);
The first parameter is the local path to the audio file.
The second parameter determines if the lib will automatically set the clip's hideflags to DontUnloadUnusedAsset to prevent Unity from collecting it.
Put your audio files of the same name of the clip you wanna replace in UserData/CustomAudio
If the folder doesn't exist, boot the game once or just make it yourself
In MelonPreferences.cfg change LogSounds to true
When in game, whenever an audioclip is played it will log it's name to the console
I added some stupid thing where if you have an audio file named REPLACE_ALL, it will override every audioclip in the game with it.