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 void FadeOutAndStop(ulong soundId, float fadeTime)

Parameters

soundId ulong
fadeTime float

Play(AudioAsset, PlaySoundDesc)

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

Parameters

asset AudioAsset
desc SFX.PlaySoundDesc

Returns

ulong

Restart(ulong)

public static void Restart(ulong soundId)

Parameters

soundId ulong

SetLoopTimeout(ulong, float)

public static void SetLoopTimeout(ulong soundId, float timeout)

Parameters

soundId ulong
timeout float

SetSoundPosition(ulong, Vector2)

public static void SetSoundPosition(ulong soundId, Vector2 position)

Parameters

soundId ulong
position Vector2

Stop(ulong)

public static void Stop(ulong soundId)

Parameters

soundId ulong

UpdateSoundDesc(ulong, PlaySoundDesc)

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

Parameters

soundId ulong
desc SFX.PlaySoundDesc