Class StaticSoundBufferAbstract
Properties
Abstract Readonlychannel Count
channelCount: number
The number of channels in the sound buffer.
Abstract Readonlyduration
duration: number
The duration of the sound buffer, in seconds.
Readonlyengine
The engine that the sound buffer belongs to.
Abstract Readonlylength
length: number
The length of the sound buffer, in sample frames.
name
name: string = ...
The name of the sound buffer.
Abstract Readonlysample Rate
sampleRate: number
The sample rate of the sound buffer.
Methods
Abstractclone
-
Clones the sound buffer.
Parameters
Optionaloptions: Partial<IStaticSoundBufferCloneOptions>Options for cloning the sound buffer.
Returns StaticSoundBuffer
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.
See
StaticSound.buffer