Closed waozixyz closed 1 year ago
I cannot reproduce, I compiled with nim c --mm:orc --panics:on -d:release -d:emscripten raylib_game.nim
and run with emrun raylib_game.html
Sound works. What's your build command?
for testing purposes im trying to use the basic_window_web.nim file in the raylib-examples/core folder
i also tried to run the arguments you suggested but once i add the line
initAudioDevice()
into proc main i get the same exception thrown :/
i have not done any additional changes to that repo
I have done what you said, still nothing. Do you get the same error when using the C library? https://github.com/raysan5/raylib/wiki/Working-for-Web-(HTML5)
I will review the official Makefile and see what configuration you're missing. Have you installed emscripten with a package manager?
okay i have tried running the c version now and building the example and i am getting the same issue, sorry this isn't a naylib issue. i must be doing something wrong.
i have the latest emsdk following the raylib instructions.. :/
When trying to use the raylib audio functions i get the following error
if i remove any audio functions such as
initAudoDevices
everything else works and i get no errors