Eazy Sound Manager API Refrence
EazySoundManagerPrepareMusic Method (AudioClip, Single, Boolean, Boolean, Single, Single) |
Prerpares and initializes background music
Namespace: Hellmade.Sound
Assembly: Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0

C#
public static int PrepareMusic( AudioClip clip, float volume, bool loop, bool persist, float fadeInSeconds, float fadeOutSeconds )
Parameters
- clip
- Type: AudioClip
The audio clip to prepare - 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 - fadeInSeconds
- Type: SystemSingle
- fadeOutSeconds
- Type: SystemSingle
Return Value
Type: Int32The ID of the created Audio object
