Skip to content

Commit

Permalink
rocobop2
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Jul 30, 2023
1 parent 4b7d4e2 commit 4d4697c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/burn/drv/dataeast/d_cninja.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ static INT32 StoneageInit()

static INT32 Robocop2Init()
{
// BurnSetRefreshRate(57.79965); causes glitch in music, avoid
BurnSetRefreshRate(57.79); //57.79965

BurnAllocMemIndex();

Expand Down Expand Up @@ -1720,7 +1720,12 @@ static INT32 Robocop2Init()
SekSetReadByteHandler(0, robocop2_main_read_byte);
SekClose();

deco16SoundInit(DrvHucROM, DrvHucRAM, 4027500, 1, DrvYM2151WritePort, 0.45, 1006875, 0.75, 2013750, 0.50);
// re: weird huc6280 cpu speed math below in deco16SoundInit()
// it makes the music line up properly at 57.79965hz. I think this is a bug
// in the ym2151 core (timing?), because when MAME changed to Giles's ymfm
// it stopped being a problem there.

deco16SoundInit(DrvHucROM, DrvHucRAM, (INT32)((double)4027500 * 57.79 / 60), 1, DrvYM2151WritePort, 0.45, 1006875, 0.75, 2013750, 0.50);
BurnYM2203SetAllRoutes(0, 0.60, BURN_SND_ROUTE_BOTH);
BurnYM2151SetRoute(BURN_SND_YM2151_YM2151_ROUTE_1, 0.45, BURN_SND_ROUTE_BOTH);
BurnYM2151SetRoute(BURN_SND_YM2151_YM2151_ROUTE_2, 0.45, BURN_SND_ROUTE_BOTH);
Expand Down

0 comments on commit 4d4697c

Please sign in to comment.