Hi Guenther, check out Maaate http://www.cmis.csiro.au/maaate/ .
We wrote it for research purposes to directly analyse compressed domain fields. However, it does what you're looking for (MP3, seeking, piecewise decoding). It's in C++, but has C wrappers. Don't get scared by the number of libraries it consists of - all you'll need is libMaaateMPEG (to be found in src/mpeg/). Check out the file MPEGfile.H for the API (if the web documentation is not enough). A simple C example for doing what you're asking for can be found in demos/cMaaatePlay.c . Cheers, Silvia. Guenther Sohler wrote: > > I know its not xmas, but maybe it helps .. > > I need a mp3 decoder library, > > which > > * puts pcm data into an array piecewice(eg convert 1000 samples at a time) > * somehow gets the mp3 stream > * need to seek to any position in time (in mp3 file) > * simple c code example > > I looked into MAD, but id drove me MAD because there is no sample code for > low-level application > > rds guenther