Represents the raw audio data of playable sound. A Sound is the resource of an audio Asset. An audio asset can be assigned to a SoundSlot owned by a SoundComponent.
Create a new Sound instance.
If the Web Audio API is supported, pass an AudioBuffer object, otherwise an Audio object.
If the Web Audio API is not supported this contains the audio data.
If the Web Audio API is supported this contains the audio data.
Gets the duration of the sound. If the sound is not loaded it returns 0.
Represents the raw audio data of playable sound. A Sound is the resource of an audio Asset. An audio asset can be assigned to a SoundSlot owned by a SoundComponent.