Skip to content

Commit

Permalink
y8950 intf, init with optional stream synch
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkc64 committed Oct 31, 2023
1 parent c494daf commit ea0ba07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/burn/snd/burn_y8950.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/burn/snd/burn_y8950.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ea0ba07

Please sign in to comment.