API Reference

Class List

pc.Sound

Represents the resource of an audio asset.

Summary

Properties

audioIf the Web Audio API is not supported this contains the audio data
bufferIf the Web Audio API is supported this contains the audio data
durationReturns the duration of the sound.

Details

Constructor

Sound()

Properties

Audioaudio

If the Web Audio API is not supported this contains the audio data

AudioBufferbuffer

If the Web Audio API is supported this contains the audio data

Numberduration

Returns the duration of the sound. If the sound is not loaded it returns 0.