joshwcomeau / use-sound

A React Hook for playing sound effects
MIT License
2.76k stars 98 forks source link

Loops? #78

Closed elron closed 3 years ago

elron commented 3 years ago

Are loops possible? How?

ThomasRutzer commented 3 years ago

yep, you can just pass it initially: const [play] = useSound(url, { volume, loop: true })

Additional Howler options are being delegated

elron commented 3 years ago

Thanks so much!

ThomasRutzer commented 3 years ago

you're welcome! Don't forget to close if its done.