libaud

unium.in/projects

libaud is a bad audio decoding library for mp3, flac, and wav.

warning

compiling this library might take a few years off of your cpus life because of the macro abuse. you have been warned.

(compiling makes my cpu hit 90c+ easily lmao, but tbf, shitty laptop)

how to build?

$ make
# make install
# ldconfig # <-- if running the examples give any weird ldd errors on runtime

dependencies

how to use?

include the header for whichever format you need:

#include <libaud/decode/mp3.h>
#include <libaud/decode/flac.h>
#include <libaud/decode/wav.h>

and link against -laud. check the examples/ directory for code.

compile an example with:

$ gcc -O2 [flac/wav/mp3].c -laud -o example

and use with:

$ cat path/to/file.[flac/wav/mp3] | ./example