Audio Component
AudioComponent Class
The AudioComponent handles interactions with audio components.
Syntax
Member Details
ComponentId Property
Retrieves the component id for this AudioComponent.
SyntaxValue
The id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
ComponentType Field
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Name Property
This AudioComponent name, as specified in the editor.
Syntax[get: Sansar.Script.Interface] public string Name { get; }
Value
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
PlaySoundOnComponent Method
Play sound on this component (and follow its position).
SyntaxParameters
soundResource
The sound resource to play.
playSettings
The play parameters.
Returns
The play handle for controlling playback.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
PlayStreamOnComponent Method
Play web audio stream on this component (and follow its position).
SyntaxParameters
streamChannel
Channel of the audio stream to play.
loudness
Relative loudness in dB.
Returns
The play handle for controlling playback.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
ToString Method
A string representation of this object.
Syntax[Sansar.Script.Interface] public override string ToString ()
Returns
A string representation of this object.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Last updated