mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 15:03:01 +00:00
Genesis: allow sample preview
This commit is contained in:
parent
0b7772e76c
commit
917c9cf2e3
1 changed files with 10 additions and 0 deletions
|
@ -175,6 +175,16 @@ int DivPlatformGenesis::dispatch(DivCommand c) {
|
||||||
switch (c.cmd) {
|
switch (c.cmd) {
|
||||||
case DIV_CMD_NOTE_ON: {
|
case DIV_CMD_NOTE_ON: {
|
||||||
DivInstrument* ins=parent->getIns(chan[c.chan].ins);
|
DivInstrument* ins=parent->getIns(chan[c.chan].ins);
|
||||||
|
if (c.chan==5) {
|
||||||
|
if (ins->type==DIV_INS_AMIGA) {
|
||||||
|
dacMode=1;
|
||||||
|
rWrite(0x2b,1<<7);
|
||||||
|
printf("enabling dac\n");
|
||||||
|
} else if (chan[c.chan].furnaceDac) {
|
||||||
|
dacMode=0;
|
||||||
|
rWrite(0x2b,0<<7);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (c.chan==5 && dacMode) {
|
if (c.chan==5 && dacMode) {
|
||||||
if (skipRegisterWrites) break;
|
if (skipRegisterWrites) break;
|
||||||
if (ins->type==DIV_INS_AMIGA) { // Furnace mode
|
if (ins->type==DIV_INS_AMIGA) { // Furnace mode
|
||||||
|
|
Loading…
Reference in a new issue