Skip to content

Commit 81db71f

Browse files
committed
Add documentation for AudioVoice.dispose()
Signed-off-by: Akhil Raj <[email protected]>
1 parent 3b37e79 commit 81db71f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/audioVoice.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ class AudioVoice {
4343
this.output.disconnect();
4444
}
4545

46+
/**
47+
* Dispose the output if it exists
48+
* @method dispose
49+
* @for p5.AudioVoice
50+
*/
4651
dispose() {
4752
if (this.output) {
4853
this.output.disconnect();

0 commit comments

Comments
 (0)