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

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

destroyAudioFormatException
void destroyAudioFormatException(AudioFormatsException e)

Frees an exception thrown by audio-formats.

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.

Imports

AudioFormatsException (from audioformats.internals)
public import audioformats.internals : AudioFormatsException;
Undocumented in source.

Meta