audio_emitter_get_listener_mask


Description

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


Syntax:

audio_emitter_get_listener_mask(emitterID);


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


Returns:

Real


Example:

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.