hi ppl, is here anyone that have tried to subclass the audio format reader and writer classes to read from compressed audio format (mp3,ogg) ? will that be suitable for the cause ? at the moment i’ve implemented a ogg file reader, but is a bit of a hack, i decode the complete ogg in memory and then i use the internal memory for reading instead of the InputStream in the read() function. this works nicely but obviously isn’t the correct method, on large files decoding the whole file on construction still takes a lot. but how is possible to sync the input buffer read and the decoded chunk read if the size of the decoded chunk is different (or not known) from the number of frames i have to fill ?
mmmh maybe i’m confusing…
lou