Skip to content

YaSoundHandle

Beta
YaSoundHandle is an interface that controls the sound is played.

Properties

number VolumeBeta
Returns the volume of the sound. It's 1 by default.
YaSoundSetting SoundSettingBeta
Returns properties of the sound.
Ya3DSoundPositionData SoundPosInfoBeta
Returns the position information of the 3D sound.
boolean IsPlayingBeta
Returns true if the sound is being played.

Functions

boolean IsValid()Beta
Returns true if the sound playback has ended.
void Stop()Beta
Stops playing the sound.
boolean Play()Beta
Starts playing the sound.
void SetMaxDistance(number maxDistance)Beta
Sets the maximum propagation distance of the 3D sound.