Audio Playback Rate Requires Setter

Please refer to this documentation page - Some basic properties

gunshot.playbackRate = playbackRate;

This line does not work. It requires the setter:

gunshot.setPlaybackRate(playbackRate);

The volume in the same function is called correctly, but this line was probably missed during an update??

Took me awhile to figure it out. Thanks!

Right, this is a documentation error. Want to create a PR to fix it?

After being schooled by my husband as to what a PR is, all done.

Thanks.

1 Like

I hope it was a positive schooling on your husband’s part. otherwise we can school him.

Can’t wait for your PR :slight_smile:

1 Like

Years of PHP back end trumps my Vanilla Javascript and SVG programming. He’s very, very good at what he does. It was positive. :slight_smile:

1 Like

JavaScript FTW! :slight_smile:

Thanks for the PR, approved and merged.

1 Like