• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

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