Jak 2/3 - New Custom Audio Functions#165
Conversation
added: `is-any-sound-playing?`; `is-sound-playing?`; `pause-all-sounds`; `resume-all-sounds`
|
You would need to scope these changes, being able to play custom audio during the progress menu or cutscenes is a feature that is used in mods like Jak the chicken for custom cutscenes and Mario legacy for pause/title menu music |
So, would you recommend that I remove these changes from the engine code to allow people to do those kinds of things in their mods? |
|
Actually, the changes in But yeah, if it's better to remove these changes, I can do that. |
This PR implements the following custom audio functions:
is-any-sound-playing?is-sound-playing?pause-all-soundsresume-all-soundsI also made changes to
main,default-menuandscene, to automatically pause and resume any custom audio when opening or closing the Progress Menu, the Debug Menu, or the Popup Menu, as well as during cutscenes.Example of usage:
(when (is-any-sound-playing?) (pause-all-sounds) )