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.