Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loop to HookOptions #147

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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

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.

1 participant