libmad cache
jon <[email protected]> Fri, 26 Apr 2013 18:16:12 +0100
| Newsgroups | gmane.comp.audio.mad.user |
|---|---|
| Message-ID | <1366996572.30992.70.camel@jonspc> |
Hi, i'm trying to run the code on a empeg player. All seems to work ok, but I need to modify the sources a bit and I have to admit I don't fully (ok, mostly at all !) understand it. What I need to do is get madlib to read a fixed size chunk of mp3 data, then when playback is N seconds before the end of that chunk I want it to read the next chunk. IE I am trying read ahead to work round a problem with disk spin up time on the device. Strictly speaking the code does not need a cache, it can do the read twice and throw the data from the first one away - all that matters is that playback does not stop while the disk spins up, IE read of the real data must never block :-) I'm using a slightly modified madplayer at the moment linked against an unmodified libmad. Any advice? Thanks, Jon