class SoundHandle

robot_2Generated
code_blocksInput

Description

A handle to a sound that is currently playing. You can use this to control the sound's position, volume, pitch, etc.

Members

Static Members

Member NameSummary
GetActiveRetrieves a list of active sound handles.

Instance Members

Member NameSummary
StopStops the sound with an optional fade time.
DisposeDisposes of the sound handle, stopping the sound.
UpdateCalled to push changes to a sound immediately, rather than waiting for the next tick. Obsolete: This no longer needs to exist.
ClearParentClears the parent, stopping the sound from following.
PositionPosition of the sound.
RotationThe direction the sound is facing.
TransformThis sound's transform.
VolumeVolume of the sound.
NameA debug name to help identify the sound.
SpacialBlendHow 3D the sound should be. 0 means no 3D, 1 means fully.
DistanceHow many units the sound can be heard from.
FalloffThe falloff curve for the sound.
FadeoutThe fadeout curve for when the sound stops.
DecibelsObsolete: This is not used anymore.
PitchPitch of the sound.
IsPlayingWhether the sound is currently playing or not.
PausedWhether the sound is currently paused or not.
FinishedSound is done.
ReflectionsEnable the sound reflecting off surfaces. Obsolete
OcclusionAllow this sound to be occluded by geometry etc.
OcclusionRadiusThe radius of this sound's occlusion, allowing for partial occlusion.
DistanceAttenuationShould the sound fade out over distance.
AirAbsorptionShould the sound get absorbed by air, so it sounds different at distance.
TransmissionShould the sound transmit through walls, doors etc.
TargetMixerWhich mixer do we want to write to.
SampleRateHow many samples per second?
IsStoppedTrue if the sound has been stopped.
ElapsedTimeElapsed time since the sound started.
ListenLocalPlace the listener at 0,0,0 facing 1,0,0.
LoopbackIf true, then this sound won't be played unless voice_loopback is 1. The assumption is that it's the local user's voice. Amplitude and visme data will still be available!
AmplitudeMeasure of audio loudness.
IsValidChecks if the sound handle is valid.
FollowParentUpdate our position every frame relative to our parent.
LocalTransformIf we're following a parent, our position will be this relative to them.
LipSyncAccess lipsync processing.