Skip to content

Commit

Permalink
add wavesurfer.getPlaybackRate() (katspaugh#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 mspae committed Mar 6, 2017
1 parent 2492a64 commit e8d93b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/wavesurfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,15 @@ export default class WaveSurfer extends util.Observer {
this.backend.setPlaybackRate(rate);
}

/**
* Get the playback rate.
*
* @return {number}
*/
getPlaybackRate() {
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. If currently muted then it
Expand Down

0 comments on commit e8d93b5

Please sign in to comment.