setPitch

fun setPitch(pitch: Float): Sound

Sets this sound's pitch.

Parameters

pitch

A float value ( 0.5f - 2.0f ).

Sources

Link copied to clipboard