Class AudioSystem
- Namespace
- Lime
- Assembly
- Lime.dll
public static class AudioSystem
- Inheritance
-
AudioSystem
- Inherited Members
Fields
ExclusiveAudioDefaultCrossfadeTime
Default time for fade in and fade out when performing cross fade between exclusive channels. To override for corresponding kind of fade set either FadeTime or FadeInTime to non zero.
public static float ExclusiveAudioDefaultCrossfadeTime
Field Value
Properties
Active
public static bool Active { get; set; }
Property Value
Channels
public static IEnumerable<IAudioChannel> Channels { get; }
Property Value
Methods
GetGroupVolume(AudioChannelGroup)
public static float GetGroupVolume(AudioChannelGroup group)
Parameters
group
AudioChannelGroup
Returns
Initialize(ApplicationOptions)
public static void Initialize(ApplicationOptions options)
Parameters
options
ApplicationOptions
PauseAll()
public static void PauseAll()
PauseGroup(AudioChannelGroup)
public static void PauseGroup(AudioChannelGroup group)
Parameters
group
AudioChannelGroup
Play(PlayParameters)
public static Sound Play(PlayParameters parameters)
Parameters
parameters
PlayParameters
Returns
Play(string, AudioChannelGroup, bool, float, float, bool, float, float, float, bool, float)
public static Sound Play(string path, AudioChannelGroup group, bool looping = false, float priority = 0.5, float fadeInTime = 0, bool paused = false, float volume = 1, float pan = 0, float pitch = 1, bool exclusive = false, float fadeOutTime = 0)
Parameters
path
stringgroup
AudioChannelGrouplooping
boolpriority
floatfadeInTime
floatpaused
boolvolume
floatpan
floatpitch
floatexclusive
boolfadeOutTime
float
Returns
PlayEffect(string, bool, float, float, bool, float, float, float)
public static Sound PlayEffect(string path, bool looping = false, float priority = 0.5, float fadeinTime = 0, bool paused = false, float volume = 1, float pan = 0, float pitch = 1)
Parameters
path
stringlooping
boolpriority
floatfadeinTime
floatpaused
boolvolume
floatpan
floatpitch
float
Returns
PlayMusic(string, bool, float, float, bool, float, float, float)
public static Sound PlayMusic(string path, bool looping = true, float priority = 100, float fadeinTime = 0.5, bool paused = false, float volume = 1, float pan = 0, float pitch = 1)
Parameters
path
stringlooping
boolpriority
floatfadeinTime
floatpaused
boolvolume
floatpan
floatpitch
float
Returns
ResumeAll()
public static void ResumeAll()
ResumeGroup(AudioChannelGroup)
public static void ResumeGroup(AudioChannelGroup group)
Parameters
group
AudioChannelGroup
SetGroupVolume(AudioChannelGroup, float)
public static float SetGroupVolume(AudioChannelGroup group, float value)
Parameters
group
AudioChannelGroupvalue
float
Returns
StopAll()
public static void StopAll()
StopGroup(AudioChannelGroup, float)
public static void StopGroup(AudioChannelGroup group, float fadeoutTime = 0)
Parameters
group
AudioChannelGroupfadeoutTime
float
Terminate()
public static void Terminate()
Update()
public static void Update()
Events
AudioMissing
public static event Action<string> AudioMissing