Gets the listener bit-mask data for an emitter.



Argument Description
emitterID The unique ID of the emitter to get the mask of

Returns: Real


This function will return the bit-mask data that defines which audio listeners an emitter should play sounds from.


s_emit = audio_emitter_create();
if audio_emitter_get_listener_mask(s_emit) != global.PlayerMask
   audio_emitter_set_listener_mask(snd, global.PlayerMask);

The above code creates an emitter then checks the listener mask data for it, and if it's not the same as that which is stored in a global variable, it sets the listener(s) to play from using the mask data stored in the global variable.

Back: Audio Listeners
Next: audio_create_buffer_sound
© Copyright YoYo Games Ltd. 2018 All Rights Reserved