change Bifurcator system ID

This commit is contained in:
tildearrow 2024-04-21 03:34:20 -05:00
parent a6357525d9
commit ca5cf58d00
4 changed files with 4 additions and 2 deletions

Binary file not shown.

View file

@ -243,8 +243,10 @@ size | description
| - 0xd6: NDS - 16 channels
| - 0xd7: Game Boy Advance (direct) - 2 channels
| - 0xd8: Game Boy Advance (MinMod) - 16 channels
| - 0xd9: Bifurcator - 4 channels
| - 0xde: YM2610B extended - 19 channels
| - 0xe0: QSound - 19 channels
| - 0xf0: SID2 - 3 channels
| - 0xf1: 5E01 - 5 channels
| - 0xfc: Pong - 1 channel
| - 0xfd: Dummy System - 8 channels

View file

@ -54,7 +54,7 @@ void DivPlatformBifurcator::acquire(short** buf, size_t len) {
for (int i=0; i<4; i++) {
chan[i].audSub+=chan[i].freq;
if (chan[i].audSub>=65536) {
long long newx=(long long)chan[i].curx*(chan[i].param+65536)/32768;
int64_t newx=(int64_t)chan[i].curx*(chan[i].param+65536)/32768;
newx*=65536-chan[i].curx;
chan[i].curx=(int)(newx/65536);
chan[i].audSub&=65535;

View file

@ -2092,7 +2092,7 @@ void DivEngine::registerSystems() {
);
sysDefs[DIV_SYSTEM_BIFURCATOR]=new DivSysDef(
"Bifurcator", NULL, 0xf2, 0, 4, false, true, 0, false, 0, 0, 0,
"Bifurcator", NULL, 0xd9, 0, 4, false, true, 0, false, 0, 0, 0,
"a fantasy sound chip using logistic map iterations to generate sound.",
{"Channel 1", "Channel 2", "Channel 3", "Channel 4"},
{"CH1", "CH2", "CH3", "CH4"},