From ef3a43cb737fc679dc14d85e429768bf152d2a0f Mon Sep 17 00:00:00 2001 From: "Nabeel S." <99736+nabeelio@users.noreply.github.com> Date: Mon, 12 Oct 2026 16:51:54 -0500 Subject: [PATCH] Add StopAudio and StopAllAudio --- src/types/global.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 664b993..4571e5b 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -52,6 +52,16 @@ declare global { * @param name */ function StopTimer(name: string): void {} + /** + * Stops every playing instance of an audio file started with PlayAudio. + * + * @param filename The name of the audio file to stop. Relative to the sounds directory + */ + function StopAudio(filename: string): void {} + /** + * Stops all audio files started with PlayAudio. + */ + function StopAllAudio(): void {} /** * Determine if the rule has been violated, but only after a delay. Pass in a callback method, * where the rule evaluation takes place. This method is evaluated often (many times a second),