Skip to content

Commit

Permalink
add getPlaybackRate (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
entonbiba authored and thijstriemstra committed Jan 27, 2017
1 parent 6d89b9c commit f185d97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/webaudio.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ WaveSurfer.WebAudio = {
return this.state.getCurrentTime.call(this);
},

/**
* Returns the current playback rate.
*/
getPlaybackRate: function () {
return this.playbackRate;
},

/**
* Set the audio source playback rate.
*/
Expand Down

0 comments on commit f185d97

Please sign in to comment.