-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Can svelte-sound
be used manually?
#25
Comments
Currently it is not possible in It is bit harder to implement as most of the browsers don't allow audio without user interaction (but there are workarounds for games kinda apps) |
@iguesspaul Can you suggest an example API that you would like to use for import { SyntheticSound } from "svelte-sound"
import success_sound from "./success.mp4"
const options = {
// options for svelte-sound
}
const levelClearedEffect = new SyntheticSound(success_sound, options);
levelClearedEffect.play() will this kind of API will be easier to use or you would like something else? |
svelte-sound
be used manually?
The example api you had shown would be suited perfectly for me. However, the only extra thing I would perhaps like to see is the ability to reuse sounds (play them more than once, which in howler involves a whole reloading process). For the rest, this has been great library to use |
@iguesspaul You're most welcome for the feedback. I'd like to inform you that the most recent release of |
Title.
I would like to use it for both some button interactions but also for some game events (clearing a level for example)
Is this possible
The text was updated successfully, but these errors were encountered: