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_loadingexample, along with support for Sound loading and playing via Audio. It introduces the following functions: