AudioInst Class
A playing instance of a sound. This class is primarily for compatability/standardization with CloudKidSound, and to make syncing animation with audio easier. These can only be created through cloudkid.Audio.instance.play().
Methods
pause
()
public
Pauses Audio, if this AudioInst is still valid.
stop
()
public
Stops Audio, if this AudioInst is still valid.
unpause
()
public
Resumes playing Audio, if this AudioInst is still valid.
Properties
isValid
Bool
public
If this AudioInst is still valid (still the actively playing audio bit). If this is false, then Audio is no longer playing this sound and this object should be discarded.
position
Number
public
The position of the sound playhead in milliseconds, or 0 if the AudioInst is no longer valid.