mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
clean up dac code a bit
This commit is contained in:
parent
e23f4494fb
commit
4f2cdbf551
7 changed files with 62 additions and 81 deletions
|
@ -85,8 +85,7 @@ static int PicoFrameHints(void)
|
|||
}
|
||||
|
||||
z80_resetCycles();
|
||||
PsndDacLine = 0;
|
||||
emustatus &= ~1;
|
||||
PsndStartFrame();
|
||||
|
||||
pv->status&=~0x88; // clear V-Int, come out of vblank
|
||||
|
||||
|
@ -145,8 +144,6 @@ static int PicoFrameHints(void)
|
|||
|
||||
if (Pico.m.z80Run && !Pico.m.z80_reset && (PicoOpt&POPT_EN_Z80))
|
||||
PicoSyncZ80(cycles);
|
||||
if (ym2612.dacen && PsndDacLine <= y)
|
||||
PsndDoDAC(y);
|
||||
#ifdef PICO_CD
|
||||
if (PicoAHW & PAHW_MCD)
|
||||
pcd_sync_s68k(cycles, 0);
|
||||
|
@ -230,11 +227,7 @@ static int PicoFrameHints(void)
|
|||
|
||||
// get samples from sound chips
|
||||
if (y == 224 && PsndOut)
|
||||
{
|
||||
if (ym2612.dacen && PsndDacLine <= y)
|
||||
PsndDoDAC(y);
|
||||
PsndGetSamples(y);
|
||||
}
|
||||
|
||||
// Run scanline:
|
||||
CPUS_RUN(CYCLES_M68K_LINE - CYCLES_M68K_VINT_LAG - CYCLES_M68K_ASD);
|
||||
|
@ -269,8 +262,8 @@ static int PicoFrameHints(void)
|
|||
cycles = SekCyclesDone();
|
||||
if (Pico.m.z80Run && !Pico.m.z80_reset && (PicoOpt&POPT_EN_Z80))
|
||||
PicoSyncZ80(cycles);
|
||||
if (PsndOut && ym2612.dacen && PsndDacLine <= lines-1)
|
||||
PsndDoDAC(lines-1);
|
||||
if (PsndOut && ym2612.dacen && PsndDacLine < lines)
|
||||
PsndDoDAC(lines - 1);
|
||||
|
||||
#ifdef PICO_CD
|
||||
if (PicoAHW & PAHW_MCD)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue