blocksound.audio

Undocumented in source.

Members

Classes

AudioManager
class AudioManager

Manages the Audio.

Source (from blocksound.backend.types)
class Source via public import blocksound.backend.types : Source, Sound, StreamingSource, StreamedSound;

Represents a source that emits audio.

StreamingSource (from blocksound.backend.types)
class StreamingSource via public import blocksound.backend.types : Source, Sound, StreamingSource, StreamedSound;

Represents a source that emits audio, uses streaming

Functions

loadSoundFile
Sound loadSoundFile(string file)

Loads a Sound from a file.

loadStreamingSoundFile
StreamedSound loadStreamingSoundFile(string file, size_t numBuffers)

Loads a Sound from a file for streaming.

Interfaces

Sound (from blocksound.backend.types)
interface Sound via public import blocksound.backend.types : Source, Sound, StreamingSource, StreamedSound;

Represents a sound, loaded in memory. For larger sounds, consider using streaming instead.

StreamedSound (from blocksound.backend.types)
interface StreamedSound via public import blocksound.backend.types : Source, Sound, StreamingSource, StreamedSound;

Represents a sound which is loaded in chunks while playing, to save memory. Use for long/large sounds.

Meta