S
Sr101
Guest
Hey guys. I'm making a music game.
My background music uses audio streams. I open and close them when I need them.
My sounds also use the audio_sound_play function, but never have a stream so they aren't closed.
For some reason, when I leave the room with all the objects, even if I don't terminate all the sounds with
audio_stop_all()... it crashes my game and gives me all these errors in the compiler
audio_destroy_stream : Invalid stream id: 44
audio_destroy_stream : Invalid stream id: 29
audio_destroy_stream : Invalid stream id: 13
audio_destroy_stream : Invalid stream id: 7
It's finicky, though, sometimes this won't happen. If i wait until the only thing playing is the BGM, it doesn't do this (99.9% of the time).
I've been working on this game for 4 months, so there's a chance I screwed something up somewhere and can't remember. Can anyone give me some tips on what may be causing this? Thanks!
EDIT: I also never noticed this issue until I rebooted GMS the other day... I've been testing non-stop for months :/ I should also mention I have multiple Level Initializers with identical code... yet only some do this?
My background music uses audio streams. I open and close them when I need them.
My sounds also use the audio_sound_play function, but never have a stream so they aren't closed.
For some reason, when I leave the room with all the objects, even if I don't terminate all the sounds with
audio_stop_all()... it crashes my game and gives me all these errors in the compiler
audio_destroy_stream : Invalid stream id: 44
audio_destroy_stream : Invalid stream id: 29
audio_destroy_stream : Invalid stream id: 13
audio_destroy_stream : Invalid stream id: 7
It's finicky, though, sometimes this won't happen. If i wait until the only thing playing is the BGM, it doesn't do this (99.9% of the time).
I've been working on this game for 4 months, so there's a chance I screwed something up somewhere and can't remember. Can anyone give me some tips on what may be causing this? Thanks!
EDIT: I also never noticed this issue until I rebooted GMS the other day... I've been testing non-stop for months :/ I should also mention I have multiple Level Initializers with identical code... yet only some do this?
Last edited by a moderator: