audio_emitter_get_pitch


描述

This function returns the current pitch value set for the given audio emitter.


语法:

audio_emitter_get_pitch(emitter);


参数 描述
emitter The index of the emitter to use.


返回:

Real(实数)


例如:

if audio_emitter_get_pitch(emitter_player) != 1
   {
   audio_emitter_pitch(emitter_player, 1);
   }

The above code checks the current pitch of a given emitter and if it is not equal to 1 it is set to 1.