EazySoundManager.PlayMusic Method (AudioClip, Single, Boolean, Boolean)

Eazy Sound Manager API

EazySoundManagerPlayMusic Method (AudioClip, Single, Boolean, Boolean)

Play background music

Namespace:  Hellmade.Sound
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static int PlayMusic(
	AudioClip clip,
	float volume,
	bool loop,
	bool persist
)

Parameters

clip
Type: AudioClip
The audio clip to play
volume
Type: SystemSingle
The volume the music will have
loop
Type: SystemBoolean
Wether the music is looped
persist
Type: SystemBoolean
Whether the audio persists in between scene changes

Return Value

Type: Int32
The ID of the created Audio object
See Also