some more risky timing changes

But should be closer to the real thing.
Let's see what this will break...
This commit is contained in:
notaz 2017-10-02 23:38:12 +03:00
parent 8f80007bcc
commit e42a47e208
10 changed files with 129 additions and 81 deletions

View file

@ -44,7 +44,7 @@ extern int *sn76496_regs;
static void dac_recalculate(void)
{
int i, dac_cnt, pos, len, lines = Pico.m.pal ? 312 : 262, mid = Pico.m.pal ? 68 : 93;
int i, dac_cnt, pos, len, lines = Pico.m.pal ? 313 : 262, mid = Pico.m.pal ? 68 : 93;
if (PsndLen <= lines)
{
@ -169,8 +169,8 @@ PICO_INTERNAL void PsndDoDAC(int line_to)
int dout = ym2612.dacout;
int line_from = PsndDacLine;
if (line_to >= 312)
line_to = 311;
if (line_to >= 313)
line_to = 312;
pos = dac_info[line_from];
pos1 = dac_info[line_to + 1];
@ -198,8 +198,8 @@ PICO_INTERNAL void PsndDoPSG(int line_to)
int pos, pos1, len;
int stereo = 0;
if (line_to >= 312)
line_to = 311;
if (line_to >= 313)
line_to = 312;
pos = dac_info[line_from];
pos1 = dac_info[line_to + 1];