Audio¶
static class · namespace Hazel
Methods¶
CreateAudioEntity(AudioCommandID, Transform, float, float)¶
static
public static AudioEntity CreateAudioEntity(AudioCommandID triggerEventID, Transform location, float volume = 1.0f, float pitch = 1.0f)
CreateAudioEntity(string, Transform, float, float)¶
static
public static AudioEntity CreateAudioEntity(string triggerEventName, Transform location, float volume = 1.0f, float pitch = 1.0f)
PauseEventID(uint)¶
static
Pause playing audio sources associated to active event. Returns true - if event has playing audio soruces to pause.
PostEvent(AudioCommandID, AudioComponent)¶
static
Post event on AudioComponent. Returns active Event ID
PostEvent(AudioCommandID, ulong)¶
static
Post event on an object. Returns active Event ID
PostEvent(string, ulong)¶
static
Post event by name. Prefer overload that takes CommandID for speed and initialize CommandIDs once. This creates new CommandID object from eventName, which has to hash the string.
PostEventAtLocation(AudioCommandID, Vector3, Vector3)¶
static
Post event on at location creating temporary Audio Object. Returns active Event ID
PreloadEventSources(AudioCommandID)¶
static
ResumeEventID(uint)¶
static
Resume playing audio sources associated to active event. Returns true - if event has playing audio soruces to resume.
SetHighPassFilterValue(AudioComponent, float)¶
static
SetHighPassFilterValue(uint, float)¶
static
SetHighPassFilterValueObj(ulong, float)¶
static
SetLowPassFilterValue(AudioComponent, float)¶
static
SetLowPassFilterValue(uint, float)¶
static
SetLowPassFilterValueObj(ulong, float)¶
static
SetParameter(ParameterID, uint, bool)¶
static
SetParameter(ParameterID, uint, float)¶
static
SetParameter(ParameterID, uint, int)¶
static
SetParameter(ParameterID, ulong, bool)¶
static
SetParameter(ParameterID, ulong, float)¶
static
SetParameter(ParameterID, ulong, int)¶
static
SetParameterForAC(ParameterID, AudioComponent, bool)¶
static
SetParameterForAC(ParameterID, AudioComponent, float)¶
static
public static void SetParameterForAC(ParameterID id, ref AudioComponent audioComponent, float value)
SetParameterForAC(ParameterID, AudioComponent, int)¶
static
StopEventID(uint)¶
static
Stop playing audio sources associated to active event. Returns true - if event has playing audio soruces to stop.
UnloadEventSources(AudioCommandID)¶
static
Source: Hazel/Audio/Audio.cs