Update a few drivers to use new AY8910 Functions

This commit is contained in:
iq_132 2018-02-02 05:49:16 +00:00
parent 88caca51ef
commit 22486eab91
10 changed files with 44 additions and 139 deletions

View File

@ -37,8 +37,6 @@ static UINT8 *DrvTiles = NULL;
static UINT8 *DrvSprites = NULL;
static UINT8 *DrvTempRom = NULL;
static UINT32 *DrvPalette = NULL;
static INT16* pFMBuffer;
static INT16* pAY8910Buffer[6];
static UINT8 DrvRecalc;
static UINT8 DrvRomBank;
@ -459,7 +457,6 @@ static INT32 MemIndex()
DrvChars = Next; Next += 0x200 * 8 * 8;
DrvTiles = Next; Next += 0x200 * 16 * 16;
DrvSprites = Next; Next += 0x200 * 16 * 16;
pFMBuffer = (INT16*)Next; Next += nBurnSoundLen * 6 * sizeof(INT16);
DrvPalette = (UINT32*)Next; Next += 0x00600 * sizeof(UINT32);
MemEnd = Next;
@ -680,15 +677,8 @@ static void MachineInit()
ZetMapArea(0x4000, 0x47ff, 2, DrvZ80Ram2 );
ZetClose();
pAY8910Buffer[0] = pFMBuffer + nBurnSoundLen * 0;
pAY8910Buffer[1] = pFMBuffer + nBurnSoundLen * 1;
pAY8910Buffer[2] = pFMBuffer + nBurnSoundLen * 2;
pAY8910Buffer[3] = pFMBuffer + nBurnSoundLen * 3;
pAY8910Buffer[4] = pFMBuffer + nBurnSoundLen * 4;
pAY8910Buffer[5] = pFMBuffer + nBurnSoundLen * 5;
AY8910Init(0, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1500000, 0);
AY8910Init2(1, 1500000, 1);
AY8910SetAllRoutes(0, 0.25, BURN_SND_ROUTE_BOTH); // Plane Noise/Bass/Shot
AY8910SetAllRoutes(1, 0.25, BURN_SND_ROUTE_BOTH); // Whistle/Snare
@ -977,7 +967,7 @@ static INT32 DrvFrame()
if (pBurnSoundOut) {
INT32 nSegmentLength = nBurnSoundLen / nInterleave;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
AY8910Render(&pAY8910Buffer[0], pSoundBuf, nSegmentLength, 0);
AY8910Render2(pSoundBuf, nSegmentLength);
nSoundBufferPos += nSegmentLength;
}
}
@ -987,7 +977,7 @@ static INT32 DrvFrame()
INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
if (nSegmentLength) {
AY8910Render(&pAY8910Buffer[0], pSoundBuf, nSegmentLength, 0);
AY8910Render2(pSoundBuf, nSegmentLength);
}
}

View File

@ -28,8 +28,6 @@ static UINT8 *DrvSprRAM;
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
static INT16 *pAY8910Buffer[9];
static UINT8 background_image;
static UINT8 nmi_mask;
static UINT8 flipscreen;
@ -273,16 +271,6 @@ static INT32 MemIndex()
RamEnd = Next;
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[3] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[4] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[5] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[6] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[7] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[8] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
MemEnd = Next;
return 0;
@ -395,9 +383,9 @@ static INT32 DrvInit(INT32 load_type)
ZetSetOutHandler(bombjack_sound_write_port);
ZetClose();
AY8910Init(0, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(2, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1500000, 0);
AY8910Init2(1, 1500000, 1);
AY8910Init2(2, 1500000, 1);
AY8910SetAllRoutes(0, 0.13, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(1, 0.13, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(2, 0.13, BURN_SND_ROUTE_BOTH);
@ -601,7 +589,7 @@ static INT32 DrvFrame()
}
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
}
if (pBurnDraw) {

View File

@ -22,8 +22,6 @@ static UINT8 *DrvZ80RAM1;
static UINT8 *DrvVidRAM;
static UINT8 *DrvSprRAM;
static INT16 *pAY8910Buffer[6];
static UINT8 DrvJoy1[8];
static UINT8 DrvJoy2[8];
static UINT8 DrvDips[2];
@ -225,13 +223,6 @@ static INT32 MemIndex()
RamEnd = Next;
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[3] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[4] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[5] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
MemEnd = Next;
return 0;
@ -316,8 +307,8 @@ static INT32 DrvInit()
ZetSetInHandler(carjmbre_sound_read);
ZetClose();
AY8910Init(0, 1536000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1536000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1536000, 0);
AY8910Init2(1, 1536000, 1);
AY8910SetAllRoutes(0, 0.25, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(1, 0.25, BURN_SND_ROUTE_BOTH);
@ -469,7 +460,7 @@ static INT32 DrvFrame()
}
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
}
if (pBurnDraw) {

View File

@ -32,8 +32,6 @@ static UINT8 *DrvSprRAM;
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
static INT16 *pAY8910Buffer[3];
static UINT8 *soundlatch;
static UINT8 *flipscreen;
static UINT16 *layer_control;
@ -137,7 +135,7 @@ static struct BurnDIPInfo GinganinDIPList[]=
STDDIPINFO(Ginganin)
void __fastcall ginganin_write_word(UINT32 address, UINT16 data)
static void __fastcall ginganin_write_word(UINT32 address, UINT16 data)
{
if (address < 0x20000) return;
@ -165,7 +163,7 @@ void __fastcall ginganin_write_word(UINT32 address, UINT16 data)
}
}
UINT16 __fastcall ginganin_read_word(UINT32 address)
static UINT16 __fastcall ginganin_read_word(UINT32 address)
{
switch (address)
{
@ -179,17 +177,17 @@ UINT16 __fastcall ginganin_read_word(UINT32 address)
return 0;
}
void __fastcall ginganin_write_byte(UINT32 /*address*/, UINT8 /*data*/)
static void __fastcall ginganin_write_byte(UINT32 /*address*/, UINT8 /*data*/)
{
return;
}
UINT8 __fastcall ginganin_read_byte(UINT32 /*address*/)
static UINT8 __fastcall ginganin_read_byte(UINT32 /*address*/)
{
return 0;
}
void ginganin_sound_write(UINT16 address, UINT8 data)
static void ginganin_sound_write(UINT16 address, UINT8 data)
{
switch (address)
{
@ -228,7 +226,7 @@ void ginganin_sound_write(UINT16 address, UINT8 data)
}
}
UINT8 ginganin_sound_read(UINT16 address)
static UINT8 ginganin_sound_read(UINT16 address)
{
if (address == 0x1800) {
return *soundlatch;
@ -310,10 +308,6 @@ static INT32 MemIndex()
DrvPalette = (UINT32*)Next; Next += 0x400 * sizeof(UINT32);
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
AllRam = Next;
Drv68KRAM = Next; Next += 0x004000;
@ -399,7 +393,7 @@ static INT32 DrvInit()
M6809SetReadHandler(ginganin_sound_read);
M6809Close();
AY8910Init(0, 3579545 / 2, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 3579545 / 2, 0);
AY8910SetAllRoutes(0, 0.10, BURN_SND_ROUTE_BOTH);
BurnY8950Init(1, 3579545, DrvSndROM, 0x20000, NULL, 0, NULL, &DrvSynchroniseStream, 1);
@ -624,7 +618,7 @@ static INT32 DrvFrame()
BurnTimerEndFrameY8950(nCyclesTotal[1]);
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
BurnY8950Update(pBurnSoundOut, nBurnSoundLen);
}

View File

@ -20,8 +20,6 @@ static UINT16 *DrvVidRAM;
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
static INT16 *pAY8910Buffer[3];
static UINT16 tile_bank;
static UINT8 flipscreen;
@ -215,10 +213,6 @@ static INT32 MemIndex()
RamEnd = Next;
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
MemEnd = Next;
return 0;
@ -277,7 +271,7 @@ static INT32 DrvInit()
M6502SetReadHandler(mole_read);
M6502Close();
AY8910Init(0, 2000000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 2000000, 0);
AY8910SetAllRoutes(0, 0.30, BURN_SND_ROUTE_BOTH);
GenericTilesInit();
@ -348,7 +342,7 @@ static INT32 DrvFrame()
M6502Close();
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
}
if (pBurnDraw) {

View File

@ -29,9 +29,6 @@ static UINT8 *soundlatch;
static UINT8 *scrolly;
static UINT8 *video_control;
static INT16 *pAY8910Buf = NULL;
static INT16 *pAY8910Buffer[6];
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
@ -125,7 +122,7 @@ static void mystston_soundcontrol(UINT8 data)
ay8910_select = data;
}
UINT8 mystston_read(UINT16 address)
static UINT8 mystston_read(UINT16 address)
{
switch (address & ~0x1f8f)
{
@ -145,7 +142,7 @@ UINT8 mystston_read(UINT16 address)
return 0;
}
void mystston_write(UINT16 address, UINT8 data)
static void mystston_write(UINT16 address, UINT8 data)
{
if ((address & 0xe060) == 0x2060) {
DrvPalRAM[address & 0x1f] = data;
@ -284,18 +281,6 @@ static INT32 MemIndex()
return 0;
}
// nBurnSoundLen changes if the refresh rate is changed, but this only
// occurs AFTER the init is called, so we can't allocate this there, so
// we call it during the frame function.
static void SoundBufferAlloc()
{
pAY8910Buf = (INT16*)BurnMalloc(nBurnSoundLen * 6 * sizeof(INT16));
for (INT32 i = 0; i < 6; i++) {
pAY8910Buffer[i] = pAY8910Buf + i * nBurnSoundLen;
}
}
static INT32 DrvInit()
{
BurnSetRefreshRate(57.445);
@ -346,8 +331,8 @@ static INT32 DrvInit()
M6502SetReadHandler(mystston_read);
M6502Close();
AY8910Init(0, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1500000, 0);
AY8910Init2(1, 1500000, 1);
AY8910SetAllRoutes(0, 0.30, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(1, 0.30, BURN_SND_ROUTE_BOTH);
@ -367,7 +352,6 @@ static INT32 DrvExit()
AY8910Exit(1);
BurnFree(AllMem);
BurnFree(pAY8910Buf);
return 0;
}
@ -524,10 +508,6 @@ static INT32 DrvFrame()
DrvDoReset();
}
if (pAY8910Buf == NULL) { // Refresh rate != 60
SoundBufferAlloc();
}
{
memset (DrvInputs, 0xff, 2);
for (INT32 i = 0; i < 8; i++) {
@ -553,7 +533,7 @@ static INT32 DrvFrame()
if (pBurnSoundOut) {
INT32 nSegmentLength = nBurnSoundLen / nInterleave;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
AY8910Render(&pAY8910Buffer[0], pSoundBuf, nSegmentLength, 0);
AY8910Render2(pSoundBuf, nSegmentLength);
nSoundBufferPos += nSegmentLength;
}
}
@ -564,7 +544,7 @@ static INT32 DrvFrame()
INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
if (nSegmentLength) {
AY8910Render(&pAY8910Buffer[0], pSoundBuf, nSegmentLength, 0);
AY8910Render2(pSoundBuf, nSegmentLength);
}
}

View File

@ -24,7 +24,6 @@ static UINT8 *DrvVidRAM;
static UINT8 *DrvAttrRAM;
static UINT8 *DrvSprRAM;
static UINT8 *DrvShareRAM;
static INT16 *pAY8910Buffer[6];
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
@ -297,7 +296,6 @@ static INT32 DrvDoReset()
return 0;
}
static INT32 MemIndex()
{
UINT8 *Next; Next = AllMem;
@ -323,13 +321,6 @@ static INT32 MemIndex()
RamEnd = Next;
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[3] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[4] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[5] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
MemEnd = Next;
return 0;
@ -412,8 +403,8 @@ static INT32 DrvInit()
ZetSetWriteHandler(popper_sound_write);
ZetClose();
AY8910Init(0, 1536000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1536000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1536000, 0);
AY8910Init2(1, 1536000, 1);
AY8910SetAllRoutes(0, 0.25, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(1, 0.25, BURN_SND_ROUTE_BOTH);
@ -581,7 +572,7 @@ static INT32 DrvFrame()
}
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
}
if (pBurnDraw) {

View File

@ -23,12 +23,10 @@ static UINT8 *DrvVidRAM;
static UINT8 *DrvColRAM;
static UINT8 *DrvSprRAM;
static UINT8 *DrvScrollX;
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
static INT16 *pAY8910Buffer[6];
static INT16 *pFMBuffer;
static UINT8 DrvJoy1[8];
static UINT8 DrvJoy2[8];
static UINT8 DrvJoy3[8];
@ -144,7 +142,7 @@ static void sonson_sound_irqtrigger(UINT8 data)
DrvSoundTrigger = data;
}
void sonson_main_write(UINT16 address, UINT8 data)
static void sonson_main_write(UINT16 address, UINT8 data)
{
switch (address)
{
@ -171,7 +169,7 @@ void sonson_main_write(UINT16 address, UINT8 data)
}
}
UINT8 sonson_main_read(UINT16 address)
static UINT8 sonson_main_read(UINT16 address)
{
switch (address)
{
@ -188,7 +186,7 @@ UINT8 sonson_main_read(UINT16 address)
return 0;
}
void sonson_sound_write(UINT16 address, UINT8 data)
static void sonson_sound_write(UINT16 address, UINT8 data)
{
switch (address)
{
@ -210,7 +208,7 @@ void sonson_sound_write(UINT16 address, UINT8 data)
}
}
UINT8 sonson_sound_read(UINT16 address)
static UINT8 sonson_sound_read(UINT16 address)
{
switch (address)
{
@ -317,8 +315,6 @@ static INT32 MemIndex()
RamEnd = Next;
pFMBuffer = (INT16*)Next; Next += nBurnSoundLen * 6 * sizeof (INT16);
MemEnd = Next;
return 0;
@ -359,10 +355,6 @@ static INT32 DrvInit()
memset(AllMem, 0, nLen);
MemIndex();
for (INT32 i = 0; i < 6; i++) {
pAY8910Buffer[i] = pFMBuffer + nBurnSoundLen * i;
}
if (sonsonj)
{
for (INT32 i = 0; i < 6; i++) {
@ -422,8 +414,8 @@ static INT32 DrvInit()
M6809SetWriteHandler(sonson_sound_write);
M6809Close();
AY8910Init(0, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1500000, 0);
AY8910Init2(1, 1500000, 1);
AY8910SetAllRoutes(0, 0.30, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(1, 0.30, BURN_SND_ROUTE_BOTH);
@ -601,7 +593,7 @@ static INT32 DrvFrame()
if (pBurnSoundOut) {
INT32 nSegmentLength = nBurnSoundLen / nInterleave;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
AY8910Render(&pAY8910Buffer[0], pSoundBuf, nSegmentLength, 0);
AY8910Render2(pSoundBuf, nSegmentLength);
nSoundBufferPos += nSegmentLength;
}
}
@ -610,7 +602,7 @@ static INT32 DrvFrame()
INT32 nSegmentLength = nBurnSoundLen - nSoundBufferPos;
INT16* pSoundBuf = pBurnSoundOut + (nSoundBufferPos << 1);
if (nSegmentLength) {
AY8910Render(&pAY8910Buffer[0], pSoundBuf, nSegmentLength, 0);
AY8910Render2(pSoundBuf, nSegmentLength);
}
}

View File

@ -31,8 +31,6 @@ static UINT8 *Drv6502RAM1;
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
static INT16 *pAY8910Buffer[6];
static INT32 palette_written;
static UINT8 nmi_mask;
static UINT8 soundlatch;
@ -263,13 +261,6 @@ static INT32 MemIndex()
RamEnd = Next;
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[3] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[4] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[5] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
MemEnd = Next;
return 0;
@ -390,8 +381,8 @@ static INT32 DrvInit()
M6502Close();
AY8910Init(0, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init(1, 1500000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 1500000, 0);
AY8910Init2(1, 1500000, 1);
AY8910SetAllRoutes(0, 0.30, BURN_SND_ROUTE_BOTH);
AY8910SetAllRoutes(1, 0.30, BURN_SND_ROUTE_BOTH);
@ -641,7 +632,7 @@ static INT32 DrvFrame()
}
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
DACUpdate(pBurnSoundOut, nBurnSoundLen);
}

View File

@ -21,8 +21,6 @@ static UINT8 *DrvVidRAM;
static UINT32 *DrvPalette;
static UINT8 DrvRecalc;
static INT16 *pAY8910Buffer[3];
static UINT8 bankdata;
static INT32 vblank;
@ -164,10 +162,6 @@ static INT32 MemIndex()
RamEnd = Next;
pAY8910Buffer[0] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[1] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
pAY8910Buffer[2] = (INT16*)Next; Next += nBurnSoundLen * sizeof(INT16);
MemEnd = Next;
return 0;
@ -252,7 +246,7 @@ static INT32 DrvInit(INT32 game_select)
M6809SetReadHandler(usgames_read);
M6809Close();
AY8910Init(0, 2000000, nBurnSoundRate, NULL, NULL, NULL, NULL);
AY8910Init2(0, 2000000, 0);
AY8910SetAllRoutes(0, 0.30, BURN_SND_ROUTE_BOTH);
GenericTilesInit();
@ -345,7 +339,7 @@ static INT32 DrvFrame()
M6809Close();
if (pBurnSoundOut) {
AY8910Render(&pAY8910Buffer[0], pBurnSoundOut, nBurnSoundLen, 0);
AY8910Render2(pBurnSoundOut, nBurnSoundLen);
}
if (pBurnDraw) {