Skip to content

Commit

Permalink
add wavesurfer.getPlaybackRate() (#939)
Browse files Browse the repository at this point in the history
add getPlaybackRate method and return playback rate.
  • Loading branch information
entonbiba authored and thijstriemstra committed Jan 28, 2017
1 parent f185d97 commit 8666da3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wavesurfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,13 @@ var WaveSurfer = {
this.backend.setPlaybackRate(rate);
},

/**
* Get the playback rate.
*/
getPlaybackRate: function () {
return this.backend.getPlaybackRate();
},

/**
* Toggle the volume on and off. It not currenly muted it will
* save the current volume value and turn the volume off.
Expand Down

0 comments on commit 8666da3

Please sign in to comment.