one-file pure D decoders for vorbis, flac and mp3

sam via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Jul 5 02:04:38 PDT 2016


On Monday, 4 July 2016 at 08:01:06 UTC, ketmar wrote:
> On Monday, 4 July 2016 at 05:16:50 UTC, sam wrote:
>> https://my.mixtape.moe/cjekko.mp3
>
> pushed small update, it works now. i accidentally forgot to 
> include ID3v2 tag skiping at all, sorry! ;-)
>
> thank you for report, feel free to report even more! ;-)

Wow that was a quick fix. Thanks! The only other problem I found 
was in order to compile your lib I had to add a cast in two 
places:

> sblimit = ((ptr - g.sb_hybrid.ptr) / 18) + 1;

turned to

> sblimit = cast(int)(((ptr - g.sb_hybrid.ptr) / 18) + 1);

and

> return nb_frames * 32 * uint16_t.sizeof * s.nb_channels;

turned to

> return cast(int)(nb_frames * 32 * uint16_t.sizeof * 
> s.nb_channels);

This was the only way I could get it to compile on DMD64 D 
Compiler v2.071.1 /
LDC - the LLVM D compiler (1.0.0). There are a lot more errors in 
the gdc version mainly about pragma. But i'm not using GDC so not 
too concerned.


More information about the Digitalmars-d-announce mailing list