Skip to content

AudioService.SetMusicPitch(float) Method

Definition

Namespace: Brine2D.Audio

Sets the playback speed \(pitch\) of the current music track. Does nothing if no music is playing.

C#
public void SetMusicPitch(float pitch);

Parameters

pitch System.Single

Playback speed multiplier \(0\.25 to 4\.0\). Values are clamped.

Implements SetMusicPitch\(float\)