Announcing audio-formats v1.0.0

Guillaume Piolat firstname.lastname at gmail.com
Wed Mar 18 18:41:11 UTC 2020


Hi,


audio-formats is a new pure D #DUB package that allows to decode 
and encode audio files.



# Features

- decode #WAV / #FLAC / #MP3 (LGPL in that case)
- encode #WAV
- support for chunked load and writes (32-bit float as 
interchange)
- support for nothrow @nogc
- support for FILE* or memory buffers
- single-threaded
- designed to deprecate the `wave-d` package
- interleaved input and output


# Limitations

Note that this cannot _play_ sound, or resample sound, and that 
you would need a lockfree queue to exchange with an audio-thread. 
So for now it is merely for offline processes. SDL_mixer is 
recommended if you want a complete solution.


# To go further

* DUB: https://code.dlang.org/packages/audio-formats
* GitHub: https://github.com/AuburnSounds/audio-formats
* Public API: https://audio-formats.dpldocs.info/
* Example code: 
https://github.com/AuburnSounds/audio-formats/blob/master/examples/transcode/source/main.d


Stay @safe!


More information about the Digitalmars-d-announce mailing list