FMOD Studio User Manual 2.02
Types:
Extension Methods:
An arrangement of instruments that can be played by the game.
See Also: Event
An instanceable unit of changes to the project mix.
See Also: Snapshots and the Tracks VIew
Adds a game parameter to the event.
Event.addGameParameter(
parameterDefinition
)
Returns the game parameter ManagedObject.
Adds an audio track with the given name to the event.
Event.addGroupTrack(
name
)
string value to assign the audio track when it is created.Returns the newly created model.GroupTrack.
Adds a marker track to the event.
Event.addMarkerTrack()
Returns the newly created model.MarkerTrack.
See Also: Event
Adds a return track with the given name to the event.
Event.addReturnTrack(
name
)
string value to assign the return track when it is created.Returns the newly created return track ManagedObject.
Retrieves the 3D attributes of an event.
Event.get3DAttributes()
Returns an object representing the currently auditioned 3D attributes of the event instance:
radialDistance: Distance from the listener (number)azimuth: Angle of event in relation to listener (number)height: Vertical position of the event (number)rotation: The horizontal rotation of the event (number)Retrieves the cursor position.
Event.getCursorPosition(
parameter
)
Returns the cursor position as a number.
Retrieves an array of preset parameters referenced by the event.
Event.getParameterPresets()
Returns an array of all model.GameParameter objects that the event has a corresponding model.ParameterProxy for. This includes both preset parameters that have a parameter sheet and those that do not. The order of the array matches the order displayed in the transport bar.
Retrieves the event's unique path identifier.
Event.getPath()
Returns the event's path as a string.
Retrieves the playback position of a given parameter.
Event.getPlayheadPosition(
parameter
)
Returns the playback position of a model.Parameter as a number.
Reports whether an event is 3D.
Event.is3D()
Returns true if an event is 3D. An event is considered 3D if any of these conditions are met:
- The event has a Spatializer, 3D Object Spatializer, or a 3rd party spatializer.
- The event contains a built-in parameter.
- The event contains or references any other events which are 3D.
This function performs calculations that require the event be fully loaded into memory. This can be slow if triggered on a large number of events.
See Also: Spatializer Effect
Reports whether an event is a one-shot.
Event.isOneShot()
Returns true if an event is one-shot. An event is considered one-shot if it is guaranteed to terminate without intervention in bounded time after being started.
This function performs calculations that require the event be fully loaded into memory. This can be slow if triggered on a large number of events.
Reports whether an event instance is paused.
Event.isPaused()
Returns true if an event instance is paused.
See Also: Event State
Reports whether an event instance is playing.
Event.isPlaying()
Returns true if an event instance is playing.
See Also: Event State
Reports whether an event instance is being recorded in a profiler session.
Event.isRecording()
Returns true for profiler sessions with recording enabled.
Profiler sessions are event instances that record realtime data from the FMOD Studio system, buses, and event instances for profiling purposes.
Reports whether an event instance is stopping.
Event.isStopping()
Returns true if an event instance is stopping.
This call ignores the paused event state.
Sends the keyoff command to a currently playing event instance.
Event.keyOff()
If a sustain point exists ahead of the playback position this triggers the event instance's keyoff behavior.
Moves the playback position to the cursor position if called while the event instance is playing, stopping, or paused, or to the start of the timeline while the event instance is stopped.
Event.returnToStart()
Only the timeline playback position is affected by this particular function; the playback positions of other parameters are unaffected.
See Also: Event State, Cursor
Sets the 3D attributes of an event instance being auditioned based on a 3D attributes object.
Event.set3DAttributes(
attributes
)
See Event.get3DAttributes for more information on the properties required for the attributes object.
Sets the cursor position to a number.
Event.setCursorPosition(
parameter,
position
)
Stops an event instance immediately, skipping the stopping event state.
Event.stopImmediate()
See Also: Event State
Commands a playing event instance to enter the stopping event state.
Event.stopNonImmediate()
See Also: Event State
Toggles the pause state of an event instance.
Event.togglePause()
The equivalent of pressing the pause button in the transport controls.
See Also: Event State
Toggles the recording state for a profiler session.
Event.toggleRecording()
Plays the event instance.
Event.play()
The equivalent of pressing the play button in the transport controls.
See Also: Event State