loadSoundToBuffer

Loads a sound from a file into an OpenAL buffer. Uses libsndfile for file reading.

version(blocksound_ALBackend)
@system
ALuint
loadSoundToBuffer
(
in string filename
)

Parameters

filename string

The filename where the sound is located.

Return Value

Type: ALuint

An OpenAL buffer containing the sound.

Throws

Exception if file is not found, or engine is not initialized.

Meta