blocksound.backend.openal

Undocumented in source.

Members

Classes

ALAudioBackend
class ALAudioBackend

Class to manage the OpenAL Audio backend.

ALSound
class ALSound

OpenAL Sound backend

ALSource
class ALSource

OpenAL Source backend

ALStreamedSound
class ALStreamedSound

OpenAL Sound backend (for streaming)

ALStreamingSource
class ALStreamingSource

OpenAL Source backend (for streaming.)

Functions

loadLibraries
void loadLibraries(bool skipALload, bool skipSFload)

Loads libraries required by the OpenAL backend. This is called automatically by blocksound's init function.

loadSoundToBuffer
ALuint loadSoundToBuffer(string filename)

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

sndfile_readFloats
AudioBufferFloat sndfile_readFloats(SNDFILE* file, SF_INFO info, size_t frames)

Read an amount of shorts from a sound file using libsndfile.

sndfile_readShorts
deprecated AudioBuffer sndfile_readShorts(SNDFILE* file, SF_INFO info, size_t frames)

Read an amount of shorts from a sound file using libsndfile.

streamSoundThread
void streamSoundThread(ALStreamingSource source, ALStreamedSound sound)

The dedicated sound streaming thread. This is used to refill buffers while streaming sound.

Structs

AudioBuffer
deprecated struct AudioBuffer
Undocumented in source.
AudioBufferFloat
struct AudioBufferFloat
Undocumented in source.

Meta