• 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!

3D sound randomly just doesn't play

So in my game (top-down 2D strategy game) I've implemented 3d sounds via emitters.
For example, there's snowstorms, that emit a wind sound. When such an object (obj_snowstorm) passes by or onscreen, players hear the sound in 3d.
However, sometimes it just doesn't play even if the object passes right across the screen. It seems random, can't figure out why it happens (doesnt happen very often tho, only encountered it two-three times)

The player object is the audio_listener, and the views follow the player object.
The codes for the snowstorm-object are as follows:

Create:
GML:
emitter_id = audio_emitter_create()
audio_falloff_set_model(audio_falloff_linear_distance);
audio_emitter_position(emitter_id,x,y,0)
audio_emitter_falloff(emitter_id,400,1300,1)
audio_play_sound_on(emitter_id,heavywind,true,1);
Step:
GML:
audio_emitter_position(emitter_id,x,y,0);
Destroy + Room End:
GML:
audio_emitter_free(emitter_id);
Outside Room:
GML:
instance_destroy()
Also, as for references to this obj_snowstorm for other objects in the game, there's only an instance_create() Action for the controller object which controls the creation of f.ex. these snowstorms.
Any ideas? Thanks beforehand!
 
Top