thangngoc89 / react-howler

A React.js wrapper for howler.js (audio player)
https://khoanguyen.me/react-howler/
MIT License
361 stars 84 forks source link

add `rate` prop + `.rate()` method #119

Closed bamdadfr closed 3 years ago

bamdadfr commented 3 years ago

Hello,

This PR adds:

It is used to change the playback rate (audio speed) of sound, like you would do on a turntable.


sidenote: user input checking is minimal in order to have a more transparent mapping with the core library.

Stenerson commented 3 years ago

Thanks @bamdadsabbagh! I think this would make for a great example. What do you think about adding a new one or adding rate() to the full control example?

bamdadfr commented 3 years ago

There you go 👍🏾

Stenerson commented 3 years ago

Nice! 🙏 Will check this out and merge/release as soon as I can. Thanks @bamdadsabbagh!

bamdadfr commented 3 years ago

Awesome :) Thanks a lot for your help @Stenerson !

Stenerson commented 3 years ago

I have to say, it's extremely fun to play with the rate in real time on the FullControl player. 👏 Nice job @bamdadsabbagh, merging now and releasing shortly.

bamdadfr commented 3 years ago

Thanks @Stenerson ! Glad you're having fun with it (you are not the only one :P)