Ask pouet.net: .mod player with c/c++ source code?
category: code [glöplog]
I'm sorry, I wasn't being entirely clear. With ADPCM samples you can't loop FREELY. IIRC you have to loop back to the beginning of the sample, as ADPCM compression is stateful and would be incorrectly decoded if you just skip the position.
Actually, checking further this is not the case. The DS stores away the ADPCM-state when it reaches the loop-point, so any loop-position is OK as long as it's 16 bit aligned, and it isn't changed while the sample is playing. So it might work better than I thought, sorry for the noise ;)
Hey guys, wassup! Great thread and really thankful for the source KB!
Could someone explain/point me at some resources to show what the dsinit and dsclose functions would look like for the tinymod player? Much thanks!
Could someone explain/point me at some resources to show what the dsinit and dsclose functions would look like for the tinymod player? Much thanks!
I programmed a ProTracker MOD player ... perhaps it is now a bit too late for the thread, it could be of help to someone else anyway :)