audio-formats 2.0.1

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-formats is meant to be the easiest package to load and write sounds in D.

Features

  • ✅ Decode from WAV / MP3 / FLAC / OPUS / OGG / MOD / XM
  • ✅ Encode to WAV
  • ✅ File and memory support
  • ✅ Seeking support
  • ✅ Chunked support
  • float and double support
  • ✅ WAV encoding with dithering when reducing bit-depth
  • nothrow @nogc API
  • ✅ Archs: x86 / x86_64 / arm64

Changelog

🔔 audio-formats v2

  • Doesn't depend upon dplug:core anymore.
  • All exceptions thrown by audio-formats are now AudioFormatsException. They must be clean-up with destroyAudioFormatException.

🔔 audio-formats v1

  • Initial release.

How to use it?

  • Add audio-formats as dependency to your dub.json or dub.sdl.
  • See the transcode example for usage.

What formats are supported exactly?

DecodingEncodingSeeking support
📀 WAVYesYesSample
📀 MP3YesNoSample
📀 FLACYesNoSample
📀 OPUSYes (LGPL)NoSample
📀 OGGYesNoSample
📀 MODYesNoPattern+Row
📀 XMYesNoPattern+Row

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

License

  • ⚖️ Boost license otherwise.
  • ⚖️ LGPL v2.1 with OPUS decoding. (use DUB subconfigurations) to choose, default is boost.
  • https://github.com/Zoadian/mp3decoder
  • https://github.com/rombankzero/pocketmod
  • https://github.com/Artefact2/libxm

Ultra secret options

-The following version identifiers can be used to enable/disable decoder level features | Version Identifier | Feature |

| AF_LINEAR | Use linear sampling for MOD modules instead of Amiga sampling | | | |

Bugs

  • framesRemainingInPattern is unimplemented for XM currently.
Dependencies:
none
Versions:
2.0.1 2022-Aug-28
2.0.0 2022-Aug-26
1.5.3 2022-Feb-06
1.5.2 2022-Jan-14
1.5.1 2021-Dec-30
Show all 23 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 9 downloads this month

  • 163 downloads total

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