Skip to content

Commit

Permalink
pass seconds instead of percents to audioprocess event in startAnimat…
Browse files Browse the repository at this point in the history
…ionLoop
  • Loading branch information
akreal committed Feb 27, 2016
1 parent 6434d89 commit edacf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wavesurfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ var WaveSurfer = {
if (!my.backend.isPaused()) {
var percent = my.backend.getPlayedPercents();
my.drawer.progress(percent);
my.fireEvent('audioprocess', percent);
my.fireEvent('audioprocess', my.getCurrentTime());
requestFrame(frame);
}
};
Expand Down

0 comments on commit edacf05

Please sign in to comment.