The OpenD Programming Language

audioformats.stream

Audio decoder and encoder abstraction. This delegates to format-specific encoders/decoders.

Members

Enums

AudioFileFormat
enum AudioFileFormat

Library for sound file decoding and encoding. All operations are blocking, and should not be done in a real-time audio thread. (besides, you would also need resampling for playback). Also not thread-safe, synchronization in on yours. Format of audio files.

AudioSampleFormat
enum AudioSampleFormat

Output sample format.

Functions

convertAudioFileFormatToString
string convertAudioFileFormatToString(AudioFileFormat fmt)

Manifest constants

audiostreamUnknownLength
enum audiostreamUnknownLength;

The length of things you shouldn't query a length about: - files that are being written - audio files you don't know the extent

Structs

AudioStream
struct AudioStream

An AudioStream is a pointer to a dynamically allocated Stream. It can encode and decode to audio files or in memory.

EncodingOptions
struct EncodingOptions

An optional struct, passed when encoding a sound (WAV or QOA).

Meta