PlayHandle
Last updated
Last updated
The PlayHandle represents audio play handles.
Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Releases resources held by this instance.
Syntax[Sansar.Script.Interface] public Dispose ()
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Syntax
RemarksEnsures that this instance has been Disposed.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the loudness for this PlayHandle.
SyntaxReturns
The loudness (in dB).
RemarksThis synchronous method returns the broadcasted loudness. It does not wait to hear back from clients.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Retrieves the relative pitch for this PlayHandle.
SyntaxReturns
The relative pitch.
RemarksThis synchronous method returns the broadcasted pitch. It does not wait to hear back from clients.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Returns the number of seconds remaining.
SyntaxReturns
The number of seconds remaining. (0 if done playing, -1 if looped)
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Returns the current PlayStatus.
SyntaxReturns
The current PlayStatus.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Returns whether the sound is currently playing.
SyntaxReturns
true if currently playing
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Triggers action when this sound is finished playing. Doesn't trigger if stopped or looping.
SyntaxParameters
handler
Action to be called when the sound finishes playing.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the loudness for this PlayHandle.
SyntaxParameters
loudness
The loudness (in dB).
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the loudness for this PlayHandle.
SyntaxParameters
loudness
The loudness (in dB).
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the loudness for this PlayHandle.
SyntaxParameters
loudness
The loudness (in dB).
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the relative pitch for this PlayHandle.
SyntaxParameters
pitch
The relative pitch in semitones. (default = 0)
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the relative pitch for this PlayHandle.
SyntaxParameters
pitch
The relative pitch in semitones. (default = 0)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the relative pitch for this PlayHandle.
SyntaxParameters
pitch
The relative pitch in semitones. (default = 0)
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stops the sound on this PlayHandle.
SyntaxReturns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stops the sound on this PlayHandle.
SyntaxParameters
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stops the sound on this PlayHandle.
SyntaxParameters
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stops the sound on this PlayHandle.
SyntaxParameters
fadeout
Will fade out if true.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stops the sound on this PlayHandle.
SyntaxParameters
fadeout
Will fade out if true.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stops the sound on this PlayHandle.
SyntaxParameters
fadeout
Will fade out if true.
handler
Handler to be called when the event completes.
Returns
The return value is an internal event id.
RemarksThis asynchronous method queues the write then returns.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
[Sansar.Script.Interface] public GetLoudness ()
[Sansar.Script.Interface] public GetPitchShift ()
[Sansar.Script.Interface] public GetRemainingSeconds ()
[Sansar.Script.Interface] public GetStatus ()
[Sansar.Script.Interface] public IsPlaying ()
[Sansar.Script.Interface] public OnFinished ( handler)
[Sansar.Script.Interface] public SetLoudness ( loudness)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public SetPitchShift ( pitch)
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
This asynchronous method queues the write then returns. To block until the write has occurred, pass this method to while in a coroutine.
[Sansar.Script.Interface] public Stop ()
[Sansar.Script.Interface] public Stop ( fadeout)