audio-formats 1.1.2

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 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
OGGBrokenNo

All of this wouldn't be possible without the hard work of Ketmar.

References

  • https://github.com/Zoadian/mp3decoder

License

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

Bugs

  • OGG decoding doesn't work, the sound is unusable.
Dependencies:
dplug:core
Versions:
3.0.2 2024-Feb-11
3.0.1 2023-Sep-30
3.0.0 2023-Sep-30
2.2.1 2023-Jul-07
2.2.0 2023-Apr-16
Show all 34 versions
Download Stats:
  • 1 downloads today

  • 3 downloads this week

  • 11 downloads this month

  • 493 downloads total

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