TrevTV / MelonLoader-AudioTools

MelonLoader mods to import audio files into AudioClips using BASS and dynamically replace AudioClips with minimal effort
GNU General Public License v3.0
1 stars 1 forks source link

MelonLoader AudioTools (AudioReplacer and AudioImportLib)

Audio Import Lib

A library to allow code modders to import common audio file formats into AudioClips that are playable in-game.

API

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.

FAQ

Audio Replacer

How To Use

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

How To Find Audio Clip Names

In MelonPreferences.cfg change LogSounds to true

When in game, whenever an audioclip is played it will log it's name to the console

Complete Override

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.

Credits/Licensing