prepare for end of song effect

This commit is contained in:
tildearrow 2022-02-04 14:43:57 -05:00
parent 29174e97cc
commit b57e85134e
3 changed files with 5 additions and 0 deletions

View file

@ -46,5 +46,6 @@ however, effects are continuous, which means you only need to type it once and t
- `EFxx`: add or subtract global pitch. - `EFxx`: add or subtract global pitch.
- this effect is rather weird. use with caution. - this effect is rather weird. use with caution.
- `80` is center. - `80` is center.
- `FFxx`: end of song/stop playback.
additionally each system has its own effects. more details in another section of the manual. additionally each system has its own effects. more details in another section of the manual.

View file

@ -1446,6 +1446,8 @@ const char* DivEngine::getEffectDesc(unsigned char effect, int chan) {
return "EExx: Send external command"; return "EExx: Send external command";
case 0xef: case 0xef:
return "EFxx: Set global tuning"; return "EFxx: Set global tuning";
case 0xff:
return "FFxx: Stop song";
default: default:
if (chan>=0 && chan<chans) { if (chan>=0 && chan<chans) {
const char* ret=disCont[dispatchOfChan[chan]].dispatch->getEffectName(effect); const char* ret=disCont[dispatchOfChan[chan]].dispatch->getEffectName(effect);

View file

@ -683,6 +683,8 @@ void DivEngine::processRow(int i, bool afterDelay) {
case 0xef: // global pitch case 0xef: // global pitch
globalPitch+=(signed char)(effectVal-0x80); globalPitch+=(signed char)(effectVal-0x80);
break; break;
case 0xff: // stop song TODO
break;
} }
} }