From ea0ba073c2ad85a23d47f9bf8699f1435df8cf78 Mon Sep 17 00:00:00 2001 From: dinkc64 Date: Mon, 30 Oct 2023 23:55:41 -0400 Subject: [PATCH] y8950 intf, init with optional stream synch --- src/burn/snd/burn_y8950.cpp | 5 +++++ src/burn/snd/burn_y8950.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/burn/snd/burn_y8950.cpp b/src/burn/snd/burn_y8950.cpp index 1e1ead6f08..02eaa91ab3 100644 --- a/src/burn/snd/burn_y8950.cpp +++ b/src/burn/snd/burn_y8950.cpp @@ -267,6 +267,11 @@ void BurnY8950Exit() DebugSnd_Y8950Initted = 0; } +INT32 BurnY8950Init(INT32 num, INT32 nClockFrequency, UINT8* Y8950ADPCM0ROM, INT32 nY8950ADPCM0Size, UINT8* Y8950ADPCM1ROM, INT32 nY8950ADPCM1Size, OPL_IRQHANDLER IRQCallback, INT32 bAddSignal) +{ + return BurnY8950Init(num, nClockFrequency, Y8950ADPCM0ROM, nY8950ADPCM0Size, Y8950ADPCM1ROM, nY8950ADPCM1Size, IRQCallback, BurnSynchroniseStream, bAddSignal); +} + INT32 BurnY8950Init(INT32 num, INT32 nClockFrequency, UINT8* Y8950ADPCM0ROM, INT32 nY8950ADPCM0Size, UINT8* Y8950ADPCM1ROM, INT32 nY8950ADPCM1Size, OPL_IRQHANDLER IRQCallback, INT32 (*StreamCallback)(INT32), INT32 bAddSignal) { INT32 timer_chipbase = BurnTimerInit(&Y8950TimerOver, NULL, num); diff --git a/src/burn/snd/burn_y8950.h b/src/burn/snd/burn_y8950.h index d7d8c71cfc..3276204107 100644 --- a/src/burn/snd/burn_y8950.h +++ b/src/burn/snd/burn_y8950.h @@ -5,6 +5,7 @@ extern "C" { #include "timer.h" INT32 BurnY8950Init(INT32 num, INT32 nClockFrequency, UINT8* Y8950ADPCM0ROM, INT32 nY8950ADPCM0Size, UINT8* Y8950ADPCM1ROM, INT32 nY8950ADPCM1Size, OPL_IRQHANDLER IRQCallback, INT32 (*StreamCallback)(INT32), INT32 bAddSignal); +INT32 BurnY8950Init(INT32 num, INT32 nClockFrequency, UINT8* Y8950ADPCM0ROM, INT32 nY8950ADPCM0Size, UINT8* Y8950ADPCM1ROM, INT32 nY8950ADPCM1Size, OPL_IRQHANDLER IRQCallback, INT32 bAddSignal); void BurnY8950SetRoute(INT32 nChip, INT32 nIndex, double nVolume, INT32 nRouteDir); void BurnY8950Reset(); void BurnY8950Exit();