audio-formats 1.3.6

Streaming decoding support for popular audio formats.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

audio-formats

Audio format loading for D.

Can decode WAV / MP3 / FLAC / OPUS / OGG / MOD / XM from a file or memory. Can encode WAV to a file or to memory.

It is a replacement for the wave-d package but with more formats, nothrow @nogc and chunk support.

API

See examples/transcode/main.d: https://github.com/AuburnSounds/audio-formats/blob/master/examples/transcode/source/main.d

File format support

DecodingEncoding
WAVYesYes
MP3YesNo
FLACYesNo
OPUSYes (LGPL)No
OGGYesNo
MODYesNo
XMYesNo

Some of these decoders were originally translated by Ketmar, who did the heavy-lifting.

References

  • https://github.com/Zoadian/mp3decoder
  • https://github.com/rombankzero/pocketmod
  • https://github.com/Artefact2/libxm

License

  • Boost license otherwise.
  • LGPL v2.1 with OPUS decoding. (use DUB subconfigurations) to choose, default is boost.

Bugs

  • OGG decoding doesn't work, the sound is unusable.
Dependencies:
dplug:core
Versions:
1.4.0 2021-Nov-29
1.3.7 2021-Nov-07
1.3.6 2021-Oct-31
1.3.5 2021-Oct-10
1.3.4 2021-Oct-10
Show all 15 versions
Download Stats:
  • 1 downloads today

  • 2 downloads this week

  • 7 downloads this month

  • 57 downloads total

Score:
0.2
Short URL:
audio-formats.dub.pm