damage_x Visitor
Joined: 20 Feb 2012 Posts: 4
|
Posted: Sun Jul 28, 2013 7:44 am Post subject: higher sample rates than 6.9KHz... |
|
|
Here is my idea. Set the timer interrupt to 874hz (period value of 7). During interrupt routine, stuff 32 PCM samples into the pattern buffer of channel 0, reset timer. On next interrupt, start playing channel 0 at 874hz (period value 127) and then stuff the next 32 PCM samples into the pattern buffer of channel 1. Third interrupt, start playing channel 1, reload channel 0, etc.
So basically, using two channels for double buffering of samples, loading 32 samples per interrupt, and playing PCM audio at 27965hz.
Has anyone tried this yet? Could be nice for a software MOD player. |
|