MorphOS Developer
Posts: 1107 from 2003/6/11
From: Białystok...
Quote:adolfopa wrote:
If not, any tips would be greatly appreciated
You can just ask here. However I admit that some simple audio decoder/demuxer source code would be a good start. However MOD player will be a special case, as it will not stream data from the source while playing. Instead a demuxer should load the whole module from source into memory and then render some PCM audio (I guess simply INT16, which is 16-bit signed PCM) to its output. Then audiopcm.decoder will be connected automatically by Reggae, which, in most cases, will detect identity audio transformation (INT16 -> INT16) and will just forward pull requests.
For Reggae you will need pull-driven replayer, I mean it has to be able to deliver audio frames in arbitrary sized blocks, and timing should be based solely on frame counter and requested sampling rate.