I just released Audiere/Acoustique 1.0... It uses MAD to decode MP3s into PCM data, so if you need some example source to get started with libmad (the low-level API), download it and give it a shot.
Chad Austin wrote:
I just released Audiere/Acoustique 1.0... It uses MAD to decode MP3s into PCM data, so if you need some example source to get started with libmad (the low-level API), download it and give it a shot.
Nice work, Chad.
I looked briefly through the code, and spotted one thing you may want to consider: in ResampleFrame(), the resample_state buffer should be maintained across frames rather than reset after each; there will be gaps and jumps in the resulting PCM otherwise for many resampling combinations.
Overall Audiere/Acoustique looks very useful.
Cheers, -rob