DIV_INS_MULTIPCM on note on
This commit is contained in:
parent
c90c05fde3
commit
22e02ece24
|
@ -1693,8 +1693,8 @@ int DivPlatformOPL::dispatch(DivCommand c) {
|
||||||
switch (c.cmd) {
|
switch (c.cmd) {
|
||||||
case DIV_CMD_NOTE_ON: {
|
case DIV_CMD_NOTE_ON: {
|
||||||
if (PCM_CHECK(c.chan)) { // OPL4 PCM
|
if (PCM_CHECK(c.chan)) { // OPL4 PCM
|
||||||
DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_AMIGA);
|
DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_MULTIPCM);
|
||||||
chan[c.chan].macroVolMul=ins->type==DIV_INS_AMIGA?64:127;
|
chan[c.chan].macroVolMul=ins->type==DIV_INS_MULTIPCM?64:127;
|
||||||
if (c.value!=DIV_NOTE_NULL) {
|
if (c.value!=DIV_NOTE_NULL) {
|
||||||
chan[c.chan].sample=ins->amiga.getSample(c.value);
|
chan[c.chan].sample=ins->amiga.getSample(c.value);
|
||||||
chan[c.chan].sampleNote=c.value;
|
chan[c.chan].sampleNote=c.value;
|
||||||
|
@ -2070,6 +2070,7 @@ int DivPlatformOPL::dispatch(DivCommand c) {
|
||||||
iface.sampleBank=sampleBank;
|
iface.sampleBank=sampleBank;
|
||||||
break;
|
break;
|
||||||
case DIV_CMD_LEGATO: {
|
case DIV_CMD_LEGATO: {
|
||||||
|
// TODO: OPL4 PCM
|
||||||
if (chan[c.chan].insChanged) {
|
if (chan[c.chan].insChanged) {
|
||||||
DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_FM);
|
DivInstrument* ins=parent->getIns(chan[c.chan].ins,DIV_INS_FM);
|
||||||
commitState(c.chan,ins);
|
commitState(c.chan,ins);
|
||||||
|
|
Loading…
Reference in a new issue