Quote:
Originally Posted by Steam Ranger
Does anyone know where I can get the source code for a media player or something? I want a sample to pick apart and build a working set of audio functions.
|
The source code linked in post 13 should be close to what you want (though you may want to strip it down a bit). Otherwise maybe something like
http://aminet.net/package/mus/play/playsound could be a decent starting point (a bit old school, but system friendly).
Quote:
Originally Posted by Karlos
The table was to be illustrative rather than a real world example.
|
Yes, sorry, I'm a dunce.
Quote:
Originally Posted by Karlos
|
Very cool! I see there's also very readable source code there. Some neat ideas, and maybe a tweaked version could even make sense for OP's use case. You could precalc a number of tables ahead of time, make optimized decode routines for each bit/sample version (maybe only 0/2/4 or something), and have a tiny header for each frame (the length of which could be optimized to match the playback rate).