[mad-dev] How to use the libmad low-level API