Table of Contents

Class SFX

Namespace
AO
Assembly
CoreAssembly.dll

SFX is a core engine system to work with the audio system.

public static class SFX
Inheritance
SFX
Inherited Members

Methods

FadeOutAndStop(ulong, float)

public static bool FadeOutAndStop(ulong soundId, float fadeTime)

Parameters

soundId ulong
fadeTime float

Returns

bool

Play(AudioAsset, PlaySoundDesc)

public static ulong Play(AudioAsset asset, SFX.PlaySoundDesc desc)

Parameters

asset AudioAsset
desc SFX.PlaySoundDesc

Returns

ulong

Restart(ulong)

public static bool Restart(ulong soundId)

Parameters

soundId ulong

Returns

bool

SetLoopTimeout(ulong, float)

public static bool SetLoopTimeout(ulong soundId, float timeout)

Parameters

soundId ulong
timeout float

Returns

bool

SetSoundPosition(ulong, Vector2)

public static bool SetSoundPosition(ulong soundId, Vector2 position)

Parameters

soundId ulong
position Vector2

Returns

bool

Stop(ulong)

public static bool Stop(ulong soundId)

Parameters

soundId ulong

Returns

bool

UpdateSoundDesc(ulong, PlaySoundDesc)

public static bool UpdateSoundDesc(ulong soundId, SFX.PlaySoundDesc desc)

Parameters

soundId ulong
desc SFX.PlaySoundDesc

Returns

bool