Shine is a fixed-point MP3 encoder for devices without a floating-point unit. Version 4.0 adds a psychoacoustic model, still in fixed point, with no libm. It was built with an AI coding assistant in three separate…

4 points•DrFromage•about 2 hours ago•0 comments•
Shine is a fixed-point MP3 encoder for devices without a floating-point unit.

Version 4.0 adds a psychoacoustic model, still in fixed point, with no libm. It was built with an AI coding assistant in three separate passes. First, a description of how an existing psychoacoustic model behaves. Then, from that description alone, a normative spec (doc/psy in the repo). Finally, an implementation written from the spec alone. After that, PEAQ-driven tuning loops and a CPU loop (profiling, reading the generated assembly, testing vectorization options) took it the rest of the way.

On our measurements, it runs about 3x faster than LAME at a similar PEAQ score. PEAQ is only a model of hearing, though, so there's a blind test comparing shine, LAME and FDK AAC, with live results: https://toots.github.io/shine/listen/

Code: https://github.com/toots/shine

0 comments

No comments yet.

Related stories