View Single Post
Old 23 January 2023, 19:03   #33
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,099
Quote:
Originally Posted by Steam Ranger View Post
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
The encoder actually had a UI. Screenshot, showing the analysis of a single frame: https://github.com/0xABADCAFE/ancien...shot/xdac1.png
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).
paraj is offline  
 
Page generated in 0.07750 seconds with 11 queries