SoundBuffer.loadFromMemory

Load the sound buffer from a file in memory.

The supported audio formats are: WAV (PCM only), OGG/Vorbis, FLAC. The supported sample sizes for FLAC and WAV are 8, 16, 24 and 32 bit.

class SoundBuffer
bool
loadFromMemory
(
const(void)[] data
)

Parameters

data
Type: const(void)[]

The array of data

Return Value

Type: bool

true if loading succeeded, false if it failed.

Meta