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