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.
- this effect is rather weird. use with caution.
- `80` is center.
- `FFxx`: end of song/stop playback.
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";
case 0xef:
return "EFxx: Set global tuning";
case 0xff:
return "FFxx: Stop song";
default:
if (chan>=0 && chan<chans) {
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
globalPitch+=(signed char)(effectVal-0x80);
break;
case 0xff: // stop song TODO
break;
}
}