The OpenD Programming Language

audioformats

Library for sound file decoding and encoding. See README.md for licence explanations.

Modules

dopus
module audioformats.dopus
Undocumented in source.
drflac
module audioformats.drflac
Undocumented in source.
io
module audioformats.io
Undocumented in source.
libxm
module audioformats.libxm
Undocumented in source.
minimp3
module audioformats.minimp3

Translated to D by Guillaume Piolat. Stripped down a bit for the needs of audio-formats.

minimp3_ex
module audioformats.minimp3_ex

Translated to D by Guillaume Piolat. Stripped down a bit for the needs of audio-formats.

pocketmod
module audioformats.pocketmod

MIT License

qoa
module audioformats.qoa

Note: was extended to support seeking (input only), - chunk decoding and encoding to avoid having the whole song in memory

stb_vorbis2
module audioformats.stb_vorbis2
Undocumented in source.
stream
module audioformats.stream

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

wav
module audioformats.wav

Supports Microsoft WAV audio file format.

Public Imports

audioformats.stream
public import audioformats.stream;
Undocumented in source.

Members

Functions

freeEncodedAudio
void freeEncodedAudio(const(ubyte)[] encoded)

Disowned audio buffers (with eg. encodeToWAV) must be freed with this function.

saveAsWAV
bool saveAsWAV(const(float)[] data, const(char)[] filePath, int numChannels, float sampleRate, EncodingOptions options)
bool saveAsWAV(const(double)[] data, const(char)[] filePath, int numChannels, float sampleRate, EncodingOptions options)

Encode a slice to a WAV file.

toWAV
const(ubyte)[] toWAV(const(float)[] data, int numChannels, float sampleRate, EncodingOptions options)
const(ubyte)[] toWAV(const(double)[] data, int numChannels, float sampleRate, EncodingOptions options)

Encode a slice to a WAV in memory. The returned slice MUST be freed with freeEncodedAudio.

Meta