Thread overview | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 29, 2016 one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
i decided to make some noise about those, as people may thinking about doing the ports themselves, and effectively double (or triple, or...) the work. so, here they are: * Vorbis decoder[1] (stb_vorbis port), PD; * FLAC decoder[2] (drflac port), PD; * MP3 decoder[3] (minimp3 port), GPL. they may or may not work for you, i don't know. [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d [2] http://repo.or.cz/iv.d.git/blob/HEAD:/drflac.d [3] http://repo.or.cz/iv.d.git/blob/HEAD:/minimp3.d |
June 29, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote:
> so, here they are:
> * Vorbis decoder[1] (stb_vorbis port), PD;
> * FLAC decoder[2] (drflac port), PD;
> * MP3 decoder[3] (minimp3 port), GPL.
>
That's pretty cool, thanks!
|
June 29, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote:
> i decided to make some noise about those, as people may thinking about doing the ports themselves, and effectively double (or triple, or...) the work.
>
> so, here they are:
> * Vorbis decoder[1] (stb_vorbis port), PD;
> * FLAC decoder[2] (drflac port), PD;
> * MP3 decoder[3] (minimp3 port), GPL.
>
> they may or may not work for you, i don't know.
>
>
> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d
Nice, just recently use stb_vorbis.c. Any chance you'll turn this into a dub package?
|
June 29, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Wednesday, 29 June 2016 at 10:22:39 UTC, Martin Nowak wrote:
> Any chance you'll turn this into a dub package?
zero. i'm not using dub, and i hate dub polluting my source directory with it's files.
but i don't mind if somebody will just fork/take the sources and create dub packages from that (or any other source from IV one is interested in). no need to ask my permissions or something.
|
June 29, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote:
> i decided to make some noise about those, as people may thinking about doing the ports themselves, and effectively double (or triple, or...) the work.
>
> so, here they are:
> * Vorbis decoder[1] (stb_vorbis port), PD;
> * FLAC decoder[2] (drflac port), PD;
> * MP3 decoder[3] (minimp3 port), GPL.
>
> they may or may not work for you, i don't know.
>
>
> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d
> [2] http://repo.or.cz/iv.d.git/blob/HEAD:/drflac.d
> [3] http://repo.or.cz/iv.d.git/blob/HEAD:/minimp3.d
What benefits from lib without phobos as dependens?
|
June 29, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote:
> i decided to make some noise about those, as people may thinking about doing the ports themselves, and effectively double (or triple, or...) the work.
>
> so, here they are:
> * Vorbis decoder[1] (stb_vorbis port), PD;
> * FLAC decoder[2] (drflac port), PD;
> * MP3 decoder[3] (minimp3 port), GPL.
>
> they may or may not work for you, i don't know.
>
>
> [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d
> [2] http://repo.or.cz/iv.d.git/blob/HEAD:/drflac.d
> [3] http://repo.or.cz/iv.d.git/blob/HEAD:/minimp3.d
<3
I did vorbis by myself in the past in java, that format is UUURRRRGHH !
Good work.
|
June 29, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to deadalnix | On Wednesday, 29 June 2016 at 18:03:50 UTC, deadalnix wrote: > I did vorbis by myself in the past in java, that format is UUURRRRGHH ! lucky me, Sean did all the hard work. ;-) > Good work. thank you. |
July 01, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | vorbis decoder synced with current stb version (1.06 -> 1.09) |
July 04, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to ketmar | On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote: > i decided to make some noise about those, as people may thinking about doing the ports themselves, and effectively double (or triple, or...) the work. > > so, here they are: > * Vorbis decoder[1] (stb_vorbis port), PD; > * FLAC decoder[2] (drflac port), PD; > * MP3 decoder[3] (minimp3 port), GPL. > > they may or may not work for you, i don't know. > > > [1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d > [2] http://repo.or.cz/iv.d.git/blob/HEAD:/drflac.d > [3] http://repo.or.cz/iv.d.git/blob/HEAD:/minimp3.d This is great thanks! I was able to use minimp3 with SDL2's queueaudio function to play back almost all of the MP3s in my library. But I noticed that any MP3 with embedded album art is reported as invalid by the library. Here's a sample one: https://my.mixtape.moe/cjekko.mp3 |
July 04, 2016 Re: one-file pure D decoders for vorbis, flac and mp3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to sam | On Monday, 4 July 2016 at 05:16:50 UTC, sam wrote:
> But I noticed that any MP3 with embedded album art is reported as invalid by the library. Here's a sample one:
>
> https://my.mixtape.moe/cjekko.mp3
yep, mp3 detection is very basic. while it *tries* to do some work on it, you'd better not rely on detection results. for me, test player is happy playing 7-Zip archives as mp3s, for example. ;-)
thank you for report. i may do something to improve detection, but to be honest, it is not a priority. such one-file libs are usually used in environments where you know what your files are (like game engines and such).
also, please, be aware that you *may* crash libs with malformed input data. while the libs trying their best to not fail, this is, again, not a priority.
but still, i'm using my test player to listen my huge vorbis/flac/mp3 collection, and it seems to work most of the time.
p.s. i'll take a look at the sample anyway. minimp3 should skip ID3 tags at the start of the file, but i didn't really tested that code.
|
Copyright © 1999-2021 by the D Language Foundation