SoundBuffer.loadFromFile

Load the sound buffer from a file.

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
loadFromFile
(
const(char)[] filename
)

Parameters

filename
Type: const(char)[]

Path of the sound file to load

Return Value

Type: bool

true if loading succeeded, false if it failed.

Meta