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
Play(AudioAsset, PlaySoundDesc)
public static ulong Play(AudioAsset asset, SFX.PlaySoundDesc desc)
Parameters
asset
AudioAssetdesc
SFX.PlaySoundDesc
Returns
Restart(ulong)
public static void Restart(ulong soundId)
Parameters
soundId
ulong
SetLoopTimeout(ulong, float)
public static void SetLoopTimeout(ulong soundId, float timeout)
Parameters
SetSoundPosition(ulong, Vector2)
public static void SetSoundPosition(ulong soundId, Vector2 position)
Parameters
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
ulongdesc
SFX.PlaySoundDesc