SoundObject

Description

Supported Script Types:

  • Interface Scripts
  • Client Entity Scripts
  • Avatar Scripts
  • Server Entity Scripts
  • Assignment Client Scripts
An audio resource, created by SoundCache.getSound, to be played back using Audio.playSound.

Supported file formats:

  • *.wav, *.mp3, *.ogg, *.flac, *.aiff and any available from here
  • *.raw as 48 kHz 16-bit mono
  • *.stereo.raw as 48 kHz 16-bit stereo

Properties

Name Type Summary
downloaded boolean

true if the sound has been downloaded and is ready to be played, otherwise false. Read-only.

duration number

The duration of the sound, in seconds. Read-only.

Signals

Name Summary
ready

Triggered when the sound has been downloaded and is ready to be played.

Signal Details

ready( )
Returns: Signal

Triggered when the sound has been downloaded and is ready to be played.