Skip to content

Commit 440ed59

Browse files
authored
Merge pull request #693 from Nitesh639/getPlaybackRate
Documentation of getPlaybackRate method
2 parents ab438e2 + ff19284 commit 440ed59

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/soundfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,14 @@ class SoundFile {
891891
this.rate(newPlaybackRate);
892892
}
893893

894+
/**
895+
* Returns the current playback rate of a sound file.
896+
*
897+
* @method getPlaybackRate
898+
* @for p5.SoundFile
899+
* @return {Number} Current playback rate of the SoundFile.
900+
*
901+
*/
894902
getPlaybackRate() {
895903
return this.playbackRate;
896904
}

0 commit comments

Comments
 (0)