API

Class StaticSoundBufferAbstract

Abstract class representing a static sound buffer.

A static sound buffer is a fully downloaded and decoded array of audio data that is ready to be played.

Static sound buffers can be reused multiple times by different StaticSound instances.

Static sound buffers are created by the CreateSoundBufferAsync function.

Index
channelCount: number

The number of channels in the sound buffer.

duration: number

The duration of the sound buffer, in seconds.

The engine that the sound buffer belongs to.

length: number

The length of the sound buffer, in sample frames.

name: string = ...

The name of the sound buffer.

sampleRate: number

The sample rate of the sound buffer.