Skip to content

Conversation

@Rikthepixel
Copy link

@Rikthepixel Rikthepixel commented Jan 21, 2025

After using this library myself and needing to loop a sound, I discovered that Howler exposes an option for looping sounds. We can already use this through delegated in HookOptions.

After looking through some of the issues, there seems to be some confusion around how to loop sounds. This PR solves that
confusion by making the following changes.

Changes

  • Adding a boolean property loop to HookOptions
  • Adding documentation for said loop property
  • Updating the loop property on sound in useEffect
  • Added volta to package.json to support Volta (a Node version manager)

Closes issues

@channprj
Copy link

channprj commented Apr 8, 2025

@joshwcomeau I think this is good idea. Would you please review ths PR? 🙏🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants