• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Sound cuts out if too much is playing at once?

I have a lot of noises that can run in the background. I tried running them all at once (around 6 loops playing at once maybe, and 3 sounds being triggered repetitively according to a global image index). One sound always cuts out when I start walking and the footsteps sfx plays.

What's the deal? I put audio_channel_num to 200, 300 in a create event. I don't even have that many sounds in the game and it still cuts out. It's necessary for these sounds to be able to play at the same time.
 

cdeveloper

Member
I don't know how you have your sounds playing, but if you are playing the same sound effect for each frame, it will eventually play too many sounds at once and stop.
You would need to check to see if a sound effect is playing before you play a new one.

From the manual:
GML:
if !audio_is_playing(snd_Waterfall)
{
    audio_play_sound_at(snd_Waterfall, x, y, 0, 300, true, 1);
}
 
Top