audio-formats 2.0.0
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 file or memory.
- Can encode WAV to a file or to memory.
- Seeking support
float
anddouble
decoding support- reduced bitdepth WAV encoding with dithering
This package is a replacement for the wave-d
package but with more formats, nothrow @nogc
and chunk support.
Changelog
audio-format
v2.x.y
- NEW Doesn't depend upon
dplug:core
anymore. - BREAKING All exceptions thrown by
audio-formats
areAudioFormatsException
. They must be clean-up withdestroyAudioFormatException
.
API
See examples/transcode/main.d
:
https://github.com/AuburnSounds/audio-formats/blob/master/examples/transcode/source/main.d
File format support
Decoding | Encoding | Seeking support | |
---|---|---|---|
WAV | Yes | Yes | Sample |
MP3 | Yes | No | Sample |
FLAC | Yes | No | Sample |
OPUS | Yes (LGPL) | No | Sample |
OGG | Yes | No | Sample |
MOD | Yes | No | Pattern+Row |
XM | Yes | No | Pattern+Row |
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.
Extras
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.
- Registered by ponce
- 2.0.0 released 2 years ago
- AuburnSounds/audio-formats
- BSL-1.0
- Dependencies:
- none
- 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 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
8 downloads this month
-
550 downloads total
-
- Score:
- 1.0
- Short URL:
- audio-formats.dub.pm