audio_emitter_get_pitch

Returns the current pitch of a given emitter.

Syntax:

audio_emitter_get_pitch(emitter);


Argument Description
emitter The index of the emitter to use.


Returns: Real


Description

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


Example:

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.


Back: Audio Emitters
Next: audio_emitter_get_x
© Copyright YoYo Games Ltd. 2018 All Rights Reserved