From db717bdf95ad15a62b15fb236996473f281c1e4e Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Mon, 23 Sep 2024 21:08:52 -0400 Subject: [PATCH] Audio: Add delay parameter to stop(). --- types/three/src/audio/Audio.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/three/src/audio/Audio.d.ts b/types/three/src/audio/Audio.d.ts index 434ff7fef..63a944b5e 100644 --- a/types/three/src/audio/Audio.d.ts +++ b/types/three/src/audio/Audio.d.ts @@ -173,14 +173,17 @@ export class Audio extends Object3D { * If {@link Audio.hasPlaybackControl | hasPlaybackControl} is true, starts playback. */ play(delay?: number): this; + /** * If {@link Audio.hasPlaybackControl | hasPlaybackControl} is true, pauses playback. */ pause(): this; + /** * If {@link Audio.hasPlaybackControl | hasPlaybackControl} is enabled, stops playback. + * @param delay (optional) - The delay, in seconds, at which the audio should start playing. */ - stop(): this; + stop(delay?: number): this; /** * Called automatically when playback finished.