I tried running a simple program that plays music with the following code:
music(0)
However, this soon led to a segmentation fault. I then tried adding _init():
function _init()
music(0)
end
Still led to a segmentation fault. Finally, I tried running this:
music(0)
function _draw()
end
This runs fine, and also works for _update and _update60. Running FAKE-08 through a debugger reveals that this seems to be undefined behavior with SDL_RenderPresent(renderer), within sdl2basehost.cpp (line 76). Could this be an issue with the audio buffer? Why does it work when _update(), _update60, or _draw is present?
I tried running a simple program that plays music with the following code:
However, this soon led to a segmentation fault. I then tried adding _init():
Still led to a segmentation fault. Finally, I tried running this:
This runs fine, and also works for
_update
and_update60
. Running FAKE-08 through a debugger reveals that this seems to be undefined behavior withSDL_RenderPresent(renderer)
, withinsdl2basehost.cpp
(line 76). Could this be an issue with the audio buffer? Why does it work when_update()
,_update60
, or_draw
is present?