Skip to content

Commit 177cc83

Browse files
committed
documented getVolume()
1 parent f0242b3 commit 177cc83

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/soundfile.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,13 @@ class SoundFile {
745745
}
746746
}
747747

748+
/**
749+
* It returns the volume of a sound is how loud or quiet the sound is.
750+
*
751+
* @method getVolume
752+
* @for p5.SoundFile
753+
* @return {Number}
754+
*/
748755
getVolume() {
749756
return this.output.gain.value;
750757
}

0 commit comments

Comments
 (0)