Jump to page: 1 2
Thread overview
one-file pure D decoders for vorbis, flac and mp3
Jun 29, 2016
ketmar
Jun 29, 2016
Guillaume Piolat
Jun 29, 2016
Martin Nowak
Jun 29, 2016
ketmar
Jun 29, 2016
Suliman
Jun 29, 2016
deadalnix
Jun 29, 2016
ketmar
Jul 01, 2016
ketmar
Jul 04, 2016
sam
Jul 04, 2016
ketmar
Jul 04, 2016
Basile B.
Jul 04, 2016
ketmar
Jul 04, 2016
ketmar
Jul 05, 2016
sam
Jul 07, 2016
ketmar
June 29, 2016
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
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
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
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
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
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
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
vorbis decoder synced with current stb version (1.06 -> 1.09)
July 04, 2016
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
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.
« First   ‹ Prev
1 2