jaysalvat / buzz

Buzz is a small but powerful Javascript library that allows you to easily take advantage of the new HTML5 audio element. It tries to degrade silently on non-modern browsers.
http://buzz.jaysalvat.com
MIT License
1.21k stars 227 forks source link

setSpeed not working in IE11 and Safari11 #117

Open alextrastero opened 5 years ago

alextrastero commented 5 years ago

First of all thanks for the work on this library, it's 💯

We got an issue with setSpeed where if we set it before the play() it will not work in Safari and IE11, if we edit dist/buzz.js and use defaultPlaybackRate instead of playbackRate it does though.

// We've changed:
buzzSound.setSpeed(playbackRate);

// to:
buzzSound.sound.playbackRate = playbackRate; // makes it work in Chrome & Firefox
buzzSound.sound.defaultPlaybackRate = playbackRate; // makes it work in Safari and IE11

Anyone else run into this issue?