Skip to content

Commit 0c08c37

Browse files
authored
Merge pull request #1 from phpvms/nabeelio-patch-1
Add StopAudio and StopAllAudio
2 parents f8b0334 + ef3a43c commit 0c08c37

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/types/global.d.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ declare global {
5252
* @param name
5353
*/
5454
function StopTimer(name: string): void {}
55+
/**
56+
* Stops every playing instance of an audio file started with PlayAudio.
57+
*
58+
* @param filename The name of the audio file to stop. Relative to the sounds directory
59+
*/
60+
function StopAudio(filename: string): void {}
61+
/**
62+
* Stops all audio files started with PlayAudio.
63+
*/
64+
function StopAllAudio(): void {}
5565
/**
5666
* Determine if the rule has been violated, but only after a delay. Pass in a callback method,
5767
* where the rule evaluation takes place. This method is evaluated often (many times a second),

0 commit comments

Comments
 (0)