digitalmars.D.announce - Announcing audio-formats v1.0.0
- Guillaume Piolat (25/25) Mar 18 2020 Hi,
- Guillaume Piolat (4/6) Mar 18 2020 Also: it's just a custom repackaging of the huge work of Ketmar.
- ketmar (5/11) Mar 18 2020 glad you found it useful! but why only that? there is GPL Opus decoder t...
- Guillaume Piolat (3/8) Mar 18 2020 It's a triple "yes". I haven't yet found the time to do it but
- ketmar (4/12) Mar 18 2020 yeah. and thank you for your work! that code was simply rotting there, b...
- Guillaume Piolat (4/19) Mar 18 2020 My pleasure!
- ketmar (4/6) Mar 18 2020 tbh, i didn't really tested stb much (if at all). it *should* work, but....
- Adam D. Ruppe (4/5) Mar 18 2020 I stole your code in my repo and use it with simpleaudio... i
- Guillaume Piolat (7/9) Apr 07 2020 Update in v1.1.0:
- Guillaume Piolat (4/14) Jun 18 2021 Update in v1.3.0:
Hi, audio-formats is a new pure D #DUB package that allows to decode and encode audio files. - 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 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. * 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!
Mar 18 2020
On Wednesday, 18 March 2020 at 18:41:11 UTC, Guillaume Piolat wrote:audio-formats is a new pure D #DUB package that allows to decode and encode audio files.Also: it's just a custom repackaging of the huge work of Ketmar. https://repo.or.cz/iv.d.git
Mar 18 2020
Guillaume Piolat wrote:On Wednesday, 18 March 2020 at 18:41:11 UTC, Guillaume Piolat wrote:glad you found it useful! but why only that? there is GPL Opus decoder too, and two decoders for Ogg/Vorbis: stb and complete port of the official Xyph tremor library. also, you can find a resampler there, taken from Speex. are you planning to use those too in the future?audio-formats is a new pure D #DUB package that allows to decode and encode audio files.Also: it's just a custom repackaging of the huge work of Ketmar. https://repo.or.cz/iv.d.git
Mar 18 2020
On Wednesday, 18 March 2020 at 18:49:23 UTC, ketmar wrote:glad you found it useful! but why only that? there is GPL Opus decoder too, and two decoders for Ogg/Vorbis: stb and complete port of the official Xyph tremor library. also, you can find a resampler there, taken from Speex. are you planning to use those too in the future?It's a triple "yes". I haven't yet found the time to do it but figured it could be useful already :) Hope you are well ketmar.
Mar 18 2020
Guillaume Piolat wrote:On Wednesday, 18 March 2020 at 18:49:23 UTC, ketmar wrote:yeah. and thank you for your work! that code was simply rotting there, but now people may find some use for it. i am very bad at making my code useful for others, so i really appreciate your efforts! thanks again!glad you found it useful! but why only that? there is GPL Opus decoder too, and two decoders for Ogg/Vorbis: stb and complete port of the official Xyph tremor library. also, you can find a resampler there, taken from Speex. are you planning to use those too in the future?It's a triple "yes". I haven't yet found the time to do it but figured it could be useful already :) Hope you are well ketmar.
Mar 18 2020
On Wednesday, 18 March 2020 at 20:25:45 UTC, ketmar wrote:Guillaume Piolat wrote:My pleasure! Any input concerning stb_vorbis vs Tremor? Tremor is twice the code size and I'm not sure the one to be favoured.On Wednesday, 18 March 2020 at 18:49:23 UTC, ketmar wrote:yeah. and thank you for your work! that code was simply rotting there, but now people may find some use for it. i am very bad at making my code useful for others, so i really appreciate your efforts! thanks again!glad you found it useful! but why only that? there is GPL Opus decoder too, and two decoders for Ogg/Vorbis: stb and complete port of the official Xyph tremor library. also, you can find a resampler there, taken from Speex. are you planning to use those too in the future?It's a triple "yes". I haven't yet found the time to do it but figured it could be useful already :) Hope you are well ketmar.
Mar 18 2020
Guillaume Piolat wrote:Any input concerning stb_vorbis vs Tremor? Tremor is twice the code size and I'm not sure the one to be favoured.tbh, i didn't really tested stb much (if at all). it *should* work, but... my audio player was based on tremor, so it is better tested. maybe just make `version`, and let the user decide? ;-)
Mar 18 2020
On Wednesday, 18 March 2020 at 21:24:55 UTC, ketmar wrote:tbh, i didn't really tested stb much (if at all).I stole your code in my repo and use it with simpleaudio... i haven't used it super extensively (nor is it in my dub file btw) but what I have done with it works beautifully fine.
Mar 18 2020
On Wednesday, 18 March 2020 at 18:41:11 UTC, Guillaume Piolat wrote:- decode #WAV / #FLAC / #MP3 (LGPL in that case)Update in v1.1.0: - MP3 decoding is now Boost-compatible (with a new minimp3 translation) - OPUS decoding added (LGPL in that case) - OGG not working yet but will probably happen
Apr 07 2020
On Tuesday, 7 April 2020 at 13:02:03 UTC, Guillaume Piolat wrote:On Wednesday, 18 March 2020 at 18:41:11 UTC, Guillaume Piolat wrote:Update in v1.3.0: - MOD decoding - XM decoding- decode #WAV / #FLAC / #MP3 (LGPL in that case)Update in v1.1.0: - MP3 decoding is now Boost-compatible (with a new minimp3 translation) - OPUS decoding added (LGPL in that case) - OGG not working yet but will probably happen
Jun 18 2021