fix sample issues, part 3

This commit is contained in:
tildearrow 2024-02-02 02:13:09 -05:00
parent 5a5d85c4cc
commit 745d1d6c76
21 changed files with 42 additions and 0 deletions

View file

@ -213,7 +213,9 @@ int DivPlatformYMZ280B::dispatch(DivCommand c) {
chan[c.chan].macroVolMul=ins->type==DIV_INS_AMIGA?64:255;
if (c.value!=DIV_NOTE_NULL) {
chan[c.chan].sample=ins->amiga.getSample(c.value);
chan[c.chan].sampleNote=c.value;
c.value=ins->amiga.getFreq(c.value);
chan[c.chan].sampleNoteDelta=c.value-chan[c.chan].sampleNote;
}
if (c.value!=DIV_NOTE_NULL) {
chan[c.chan].baseFreq=NOTE_FREQUENCY(c.value);