Skip to content

Commit

Permalink
Fix another deprecation in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
goldfire committed Dec 29, 2017
1 parent 0f36973 commit dc0a2cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/howler.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@

// Change the playback rate.
if (self._webAudio && sound._node && sound._node.bufferSource) {
sound._node.bufferSource.playbackRate.value = rate;
sound._node.bufferSource.playbackRate.setValueAtTime(rate, Howler.ctx.currentTime);;

This comment has been minimized.

Copy link
@obiot

obiot Jan 20, 2018

Contributor

double semicolon :P

} else if (sound._node) {
sound._node.playbackRate = rate;
}
Expand Down Expand Up @@ -1922,7 +1922,7 @@
sound._node.bufferSource.loopStart = sound._start || 0;
sound._node.bufferSource.loopEnd = sound._stop;
}
sound._node.bufferSource.playbackRate.value = sound._rate;
sound._node.bufferSource.playbackRate.setValueAtTime(sound._rate, Howler.ctx.currentTime);

return self;
},
Expand Down

0 comments on commit dc0a2cf

Please sign in to comment.