On Sat, Jan 27, 2001 at 01:08:05PM -0500, Rob Leslie wrote:
Hi Sam,
Excellent. Is this available online somewhere? I took a quick look at pocketlinux.com but didn't know where to find it.
It's in the current CVS version of Kaffe. Pocketlinux.com has details on getting this. libmad is used in part of Kaffe's JNI code in src/libraries/clib/media.
It would be nice to develop a versatile API and shared library suitable for multiple applications. The current library is OK although perhaps a bit plain. In particular I think it would be helpful to have more API layers, so another layer might handle all the buffering associated with reading from a stream, and another layer could scale the output to any of a variety of formats (8/16/24/32-bit PCM, floating point, etc.) and so on.
Certainly, all those extra API layers would be great. But for such things as XMMS, I'm sure it has all sorts of internal buffer handling and conversion utilities. The current low-level API works great for decoding...and thats the hard part :)
cheers,
Sam