You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: