mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-08 16:38:05 -04:00
host sample rate support for Pico
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@445 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
ef4eb506de
commit
ed367a3f7c
5 changed files with 49 additions and 23 deletions
|
@ -8,6 +8,14 @@ picohw_state PicoPicohw;
|
|||
static int prev_line_cnt_irq3 = 0, prev_line_cnt_irq5 = 0;
|
||||
static int fifo_bytes_line = (16000<<16)/60/262/2; // fifo bytes/line. FIXME: other rates, modes
|
||||
|
||||
PICO_INTERNAL void PicoReratePico(void)
|
||||
{
|
||||
if (Pico.m.pal)
|
||||
fifo_bytes_line = (16000<<16)/50/312/2;
|
||||
else fifo_bytes_line = (16000<<16)/60/262/2;
|
||||
PicoPicoPCMRerate();
|
||||
}
|
||||
|
||||
static void PicoLinePico(int count)
|
||||
{
|
||||
PicoPicohw.line_counter += count;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue