Wrapper for the FMOD api EventInstance https://fmod.com/docs/2.01/unity/api.html. More...
Public Member Functions | |
ModEventInstance (object eventInstance) | |
Constructor which takes in a fmod eventInstance so we can use it. | |
MODRESULT | GetVolume (out float volume) |
Returns the volume of this instance. | |
MODRESULT | GetVolume (out float volume, out float finalvolume) |
Returns the volume and final volume of this instance. | |
MODRESULT | SetVolume (float volume) |
Sets the volume. | |
MODRESULT | GetPitch (out float pitch) |
Sets the pitch. | |
MODRESULT | GetPitch (out float pitch, out float finalpitch) |
Gets the pitch. | |
MODRESULT | SetPitch (float pitch) |
Sets the pitch. | |
MODRESULT | Get3DAttributes (out MODATTRIBUTES_3D attributes) |
Gets the 3d attributes. | |
MODRESULT | Set3DAttributes (MODATTRIBUTES_3D attributes) |
Sets the 3d attributes. | |
MODRESULT | GetListenerMask (out uint mask) |
Gets the listener mask. | |
MODRESULT | SetListenerMask (uint mask) |
Sets the listener mask. | |
MODRESULT | GetProperty (MOD_EVENT_PROPERTY index, out float value) |
Get Property. | |
MODRESULT | SetProperty (MOD_EVENT_PROPERTY index, float value) |
Set Property. | |
MODRESULT | GetReverbLevel (int index, out float level) |
Get reverb level. | |
MODRESULT | SetReverbLevel (int index, float level) |
Set reverb level. | |
MODRESULT | GetPaused (out bool paused) |
Get whether this instance is paused. | |
MODRESULT | SetPaused (bool paused) |
Set whether this instance is paused. | |
MODRESULT | Start () |
Start this instance. | |
MODRESULT | Stop (MOD_STOP_MODE stopMode) |
Stops this instance. | |
MODRESULT | GetTimelinePosition (out int position) |
Get the timeline position. | |
MODRESULT | SetTimelinePosition (int position) |
Set the timeline position. | |
MODRESULT | GetPlaybackState (out MOD_PLAYBACK_STATE state) |
Get playback state. | |
MODRESULT | Release () |
Release this instance. | |
MODRESULT | IsVirtual (out bool virtualstate) |
Returns whether this instance is virtual. | |
MODRESULT | GetParameterByName (string name, out float value) |
Gets parameter by name. | |
MODRESULT | GetParameterByName (string name, out float value, out float finalvalue) |
Gets parameter by name. | |
MODRESULT | SetParameterByName (string name, float value, bool ignoreseekspeed=false) |
Gets parameter by name. | |
MODRESULT | TriggerCue () |
Trigger cue. | |
void | ClearHandle () |
Clears the handle. | |
bool | IsValid () |
Checks whether this instance is valid. | |
Static Public Member Functions | |
static void | Setup () |
Wrapper for the FMOD api EventInstance https://fmod.com/docs/2.01/unity/api.html.
ModWobblyLife.Audio.ModEventInstance.ModEventInstance | ( | object | eventInstance | ) |
Constructor which takes in a fmod eventInstance so we can use it.
eventInstance |
void ModWobblyLife.Audio.ModEventInstance.ClearHandle | ( | ) |
Clears the handle.
MODRESULT ModWobblyLife.Audio.ModEventInstance.Get3DAttributes | ( | out MODATTRIBUTES_3D | attributes | ) |
Gets the 3d attributes.
attributes |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetListenerMask | ( | out uint | mask | ) |
Gets the listener mask.
mask |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetParameterByName | ( | string | name, |
out float | value | ||
) |
Gets parameter by name.
name | |
value |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetParameterByName | ( | string | name, |
out float | value, | ||
out float | finalvalue | ||
) |
Gets parameter by name.
name | |
value | |
finalvalue |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetPaused | ( | out bool | paused | ) |
Get whether this instance is paused.
paused |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetPitch | ( | out float | pitch | ) |
Sets the pitch.
pitch |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetPitch | ( | out float | pitch, |
out float | finalpitch | ||
) |
Gets the pitch.
pitch | |
finalpitch |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetPlaybackState | ( | out MOD_PLAYBACK_STATE | state | ) |
Get playback state.
state |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetProperty | ( | MOD_EVENT_PROPERTY | index, |
out float | value | ||
) |
Get Property.
index | |
value |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetReverbLevel | ( | int | index, |
out float | level | ||
) |
Get reverb level.
index | |
level |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetTimelinePosition | ( | out int | position | ) |
Get the timeline position.
position |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetVolume | ( | out float | volume | ) |
Returns the volume of this instance.
volume |
MODRESULT ModWobblyLife.Audio.ModEventInstance.GetVolume | ( | out float | volume, |
out float | finalvolume | ||
) |
Returns the volume and final volume of this instance.
volume | |
finalvolume |
bool ModWobblyLife.Audio.ModEventInstance.IsValid | ( | ) |
Checks whether this instance is valid.
MODRESULT ModWobblyLife.Audio.ModEventInstance.IsVirtual | ( | out bool | virtualstate | ) |
Returns whether this instance is virtual.
virtualstate |
MODRESULT ModWobblyLife.Audio.ModEventInstance.Release | ( | ) |
Release this instance.
MODRESULT ModWobblyLife.Audio.ModEventInstance.Set3DAttributes | ( | MODATTRIBUTES_3D | attributes | ) |
Sets the 3d attributes.
attributes |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetListenerMask | ( | uint | mask | ) |
Sets the listener mask.
mask |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetParameterByName | ( | string | name, |
float | value, | ||
bool | ignoreseekspeed = false |
||
) |
Gets parameter by name.
name | |
value | |
ignoreseekspeed |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetPaused | ( | bool | paused | ) |
Set whether this instance is paused.
paused |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetPitch | ( | float | pitch | ) |
Sets the pitch.
pitch |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetProperty | ( | MOD_EVENT_PROPERTY | index, |
float | value | ||
) |
Set Property.
index | |
value |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetReverbLevel | ( | int | index, |
float | level | ||
) |
Set reverb level.
index | |
level |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetTimelinePosition | ( | int | position | ) |
Set the timeline position.
position |
|
static |
MODRESULT ModWobblyLife.Audio.ModEventInstance.SetVolume | ( | float | volume | ) |
Sets the volume.
volume |
MODRESULT ModWobblyLife.Audio.ModEventInstance.Start | ( | ) |
Start this instance.
MODRESULT ModWobblyLife.Audio.ModEventInstance.Stop | ( | MOD_STOP_MODE | stopMode | ) |
Stops this instance.
stopMode |
MODRESULT ModWobblyLife.Audio.ModEventInstance.TriggerCue | ( | ) |
Trigger cue.