SoundPlayer
Namespace: Murder.Core.Sounds
Assembly: Murder.dll
public class SoundPlayer : ISoundPlayer
Implements: ISoundPlayer
⭐ Constructors
public SoundPlayer()
⭐ Methods
Stop(bool, out SoundEventId[]&)
public virtual bool Stop(bool fadeOut, SoundEventId[]& stoppedEvents)
Parameters
fadeOut
bool
stoppedEvents
SoundEventId[]&
Returns
bool
Stop(T?, bool)
public virtual bool Stop(T? id, bool fadeOut)
Returns
bool
UpdateEvent(SoundEventId, SoundSpatialAttributes)
public virtual bool UpdateEvent(SoundEventId id, SoundSpatialAttributes attributes)
Parameters
id
SoundEventId
attributes
SoundSpatialAttributes
Returns
bool
GetGlobalParameter(ParameterId)
public virtual float GetGlobalParameter(ParameterId _)
Parameters
_
ParameterId
Returns
float
FetchAllPlugins()
public virtual ImmutableArray<T> FetchAllPlugins()
Returns
ImmutableArray<T>
FetchAllBanks()
public virtual ImmutableDictionary<TKey, TValue> FetchAllBanks()
Returns
ImmutableDictionary<TKey, TValue>
LoadContentAsync(PackedSoundData)
public virtual Task LoadContentAsync(PackedSoundData packedData)
Parameters
packedData
PackedSoundData
Returns
Task
ReloadAsync()
public virtual Task ReloadAsync()
Returns
Task
PlayEvent(SoundEventId, SoundProperties, T?)
public virtual ValueTask PlayEvent(SoundEventId _, SoundProperties __, T? attributes)
Parameters
_
SoundEventId
__
SoundProperties
attributes
T?
Returns
ValueTask
Initialize(string)
public virtual void Initialize(string resourcesPath)
Parameters
resourcesPath
string
SetGlobalParameter(ParameterId, float)
public virtual void SetGlobalParameter(ParameterId parameter, float value)
Parameters
parameter
ParameterId
value
float
SetParameter(SoundEventId, ParameterId, float)
public virtual void SetParameter(SoundEventId instance, ParameterId parameter, float value)
Parameters
instance
SoundEventId
parameter
ParameterId
value
float
SetVolume(T?, float)
public virtual void SetVolume(T? _, float volume)
Change volume.
Update()
public virtual void Update()
UpdateListener(SoundSpatialAttributes)
public virtual void UpdateListener(SoundSpatialAttributes attributes)
Parameters
attributes
SoundSpatialAttributes
⚡