audio_emitter_get_listener_mask


描述

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


语法:

audio_emitter_get_listener_mask(emitterID);


参数 描述
emitterID The unique ID of the emitter to get the mask of


返回:

Real(实数)


例如:

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.