command stream ALG/FMS/AMS effects

This commit is contained in:
tildearrow 2025-05-21 15:28:27 -05:00
parent 1d786a0c77
commit b98ff13753
3 changed files with 22 additions and 0 deletions

View file

@ -405,4 +405,11 @@ hex | description
dc | resonance scaling (b)
----|------------------------------------
dd | WonderSwan speaker volume (b)
----|------------------------------------
| **FM commands (continued)**
de | ALG (b)
df | FMS (b)
e0 | AMS (b)
e1 | FMS2 (b)
e2 | AMS2 (b)
```

View file

@ -447,6 +447,11 @@ bool DivCSPlayer::tick() {
case DIV_CMD_SID3_CUTOFF_SCALING:
case DIV_CMD_SID3_RESONANCE_SCALING:
case DIV_CMD_WS_GLOBAL_SPEAKER_VOLUME:
case DIV_CMD_FM_ALG:
case DIV_CMD_FM_FMS:
case DIV_CMD_FM_AMS:
case DIV_CMD_FM_FMS2:
case DIV_CMD_FM_AMS2:
arg0=(unsigned char)stream.readC();
break;
// TWO BYTE COMMANDS

View file

@ -163,6 +163,11 @@ int DivCS::getCmdLength(unsigned char ext) {
case DIV_CMD_SID3_CUTOFF_SCALING:
case DIV_CMD_SID3_RESONANCE_SCALING:
case DIV_CMD_WS_GLOBAL_SPEAKER_VOLUME:
case DIV_CMD_FM_ALG:
case DIV_CMD_FM_FMS:
case DIV_CMD_FM_AMS:
case DIV_CMD_FM_FMS2:
case DIV_CMD_FM_AMS2:
return 1;
case DIV_CMD_FM_TL:
case DIV_CMD_FM_AM:
@ -545,6 +550,11 @@ void writeCommandValues(SafeWriter* w, const DivCommand& c, bool bigEndian) {
case DIV_CMD_SID3_CUTOFF_SCALING:
case DIV_CMD_SID3_RESONANCE_SCALING:
case DIV_CMD_WS_GLOBAL_SPEAKER_VOLUME:
case DIV_CMD_FM_ALG:
case DIV_CMD_FM_FMS:
case DIV_CMD_FM_AMS:
case DIV_CMD_FM_FMS2:
case DIV_CMD_FM_AMS2:
w->writeC(c.value);
break;
case DIV_CMD_FM_TL: