new dispatch, part 2

This commit is contained in:
tildearrow 2023-01-03 14:39:31 -05:00
parent a29f36a5df
commit 3a687eeb45
4 changed files with 6 additions and 3 deletions

View file

@ -177,6 +177,7 @@ struct DivDispatchContainer {
short* bbIn[DIV_MAX_OUTPUTS];
short* bbOut[DIV_MAX_OUTPUTS];
bool lowQuality, dcOffCompensation;
double rateMemory;
void setRates(double gotRate);
void setQuality(bool lowQual);
@ -194,7 +195,8 @@ struct DivDispatchContainer {
runPos(0),
lastAvail(0),
lowQuality(false),
dcOffCompensation(false) {
dcOffCompensation(false),
rateMemory(0.0) {
memset(bb,0,DIV_MAX_OUTPUTS*sizeof(blip_buffer_t*));
memset(temp,0,DIV_MAX_OUTPUTS*sizeof(int));
memset(prevSample,0,DIV_MAX_OUTPUTS*sizeof(int));