EazySoundManager.PrepareSound Method (AudioClip, Single, Boolean, Transform)

Eazy Sound Manager API

EazySoundManagerPrepareSound Method (AudioClip, Single, Boolean, Transform)

Prepares and initializes a sound fx

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

Parameters

clip
Type: AudioClip
The audio clip to prepare
volume
Type: SystemSingle
The volume the music will have
loop
Type: SystemBoolean
Wether the sound is looped
sourceTransform
Type: Transform
The transform that is the source of the sound (will become 3D audio). If 3D audio is not wanted, use null

Return Value

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