add BurnSoundClear() to burn_sound.cpp/h

This commit is contained in:
dinkc64 2018-10-21 04:25:10 +00:00
parent 6b5244dad9
commit 17a0d80d50
2 changed files with 11 additions and 1 deletions

View File

@ -28,6 +28,7 @@ static INT16 dac_lastout_r = 0;
static INT16 dac_lastin_l = 0;
static INT16 dac_lastout_l = 0;
// BurnSoundDCFilterReset() is called automatically @ game init, no need to call this in-driver.
void BurnSoundDCFilterReset()
{
dac_lastin_r = dac_lastout_r = 0;
@ -52,3 +53,9 @@ void BurnSoundDCFilter()
pBurnSoundOut[i*2+1] = outl;
}
}
void BurnSoundClear()
{
if (pBurnSoundOut)
memset(pBurnSoundOut, 0, nBurnSoundLen * 2 * sizeof(INT16));
}

View File

@ -32,8 +32,11 @@ void BurnSoundCopyClamp_Mono_C(INT32* Src, INT16* Dest, INT32 Len);
void BurnSoundCopyClamp_Mono_Add_C(INT32* Src, INT16* Dest, INT32 Len);
extern INT32 cmc_4p_Precalc();
void BurnSoundDCFilter();
void BurnSoundDCFilterReset();
void BurnSoundDCFilterReset(); // called in burn.cpp: BurnDrvInit()
void BurnSoundClear();
#ifdef __ELF__
#define Precalc _Precalc