Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ///@function audio_save_base_gains()
- ///@description save gain settings for all audio assets. Intended to be used once on game start to save the gains as defined in the IDE in the audio editor
- var _debug_string = "The starting gains were saved for ";
- for (i=0; audio_exists(i); i++)
- {
- sound_base_gains_array[i] = audio_sound_get_gain(i);
- _debug_string += "\n" + audio_get_name(i) + ": " + string(audio_sound_get_gain(i)); //
- }
- _debug_string += "\n" + string_format(i, 0, 0) + " sounds saved.";
- show_debug_message(_debug_string);
- return sound_base_gains_array;
Add Comment
Please, Sign In to add comment