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

audio_emitter_falloff does not work

Arashi

Member
In create event of my sound controller object I set up audio falloff model
audio_falloff_set_model(audio_falloff_linear_distance_clamped)

Then in create event of obj_bee I set up buzzing emitter.
GML:
buzzing_emitter = audio_emitter_create();
audio_emitter_falloff(buzzing_emitter,100,50,1);
audio_play_sound_on(buzzing_emitter,snd_bee,true,irandom_range(90,110));
Audio listener position is binded to the player and is updated every step with player's coordinates.
audio_listener_orientation(0,0, -1, 0, 1, 0 );
audio_listener_position(x, y, 0);

Audio emitter position is binded to the bee and is updated every step too;
audio_emitter_position(buzzing_emitter,x,y,0)

What happens: when I walk around the bee I can hear sound going from left speaker to right. But there is no falloff regardless how far I walk away from the bee.

What I am doing wrong?
 
Last edited:
Top