-
Notifications
You must be signed in to change notification settings - Fork 30
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 Sound support #55
base: main
Are you sure you want to change the base?
Conversation
Nice one! One problem: If you specify a non-existing Anyways, I don't know if Tsoding is interested in this project anymore but this PR has been helpful to me already so thanks @RobLoach! |
Thanks! Having things be async does break a lot of the syncronous nature of the C logic, but I'm unsure of an elegant way around that without something either super hacky, or complicated. If you submit a PR to my repo/branch with that |
I mentioned Another option to explore is baking the data inside of the executable as in https://www.youtube.com/watch?v=dZRPY0D9nbU - but I think Raylib only supports loading (Also we could consider just always setting the file path correctly. Making mistakes is a skill issue 😁 ) |
Likely queue into it with To embed it in the .wasm file itself and use LoadWaveFromMemory, you'd wnat to use |
This adds the
audio_sound_loading
example, along with support for Sound loading and playing via Audio. It introduces the following functions: