add filter mode macro, SID2 wave mix macro tips

This commit is contained in:
LTVA1 2024-08-10 14:21:28 +03:00
parent 4ac2338cd7
commit 3206b39525
2 changed files with 19 additions and 4 deletions

View file

@ -454,6 +454,13 @@ void DivPlatformSID3::tick(bool sysTick)
ch_filt->filter_matrix=op->ksl.val & 0xf;
doUpdateFilter = true;
}
if (op->ksr.had) { //filter mode
ch_filt->mode &= ~(SID3_FILTER_LP | SID3_FILTER_HP | SID3_FILTER_BP);
if(op->ksr.val & 1) ch_filt->mode |= SID3_FILTER_LP;
if(op->ksr.val & 2) ch_filt->mode |= SID3_FILTER_BP;
if(op->ksr.val & 4) ch_filt->mode |= SID3_FILTER_HP;
doUpdateFilter = true;
}
if(doUpdateFilter)
{