mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
Merge remote-tracking branch 'remotes/origin/adlMIDI' into alphatex2
This commit is contained in:
commit
3c6b09b3a1
1 changed files with 1 additions and 5 deletions
|
@ -75,8 +75,6 @@ ADLMIDIDevice::ADLMIDIDevice(const char *args)
|
||||||
if (Renderer != nullptr)
|
if (Renderer != nullptr)
|
||||||
{
|
{
|
||||||
adl_setBank(Renderer, 14);
|
adl_setBank(Renderer, 14);
|
||||||
//! Set 16'th channel be percussive (XG way)
|
|
||||||
adl_rt_bankChange(Renderer, 0x0F, 0x7F00);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -109,8 +107,6 @@ int ADLMIDIDevice::Open(MidiCallback callback, void *userdata)
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
adl_rt_resetState(Renderer);
|
adl_rt_resetState(Renderer);
|
||||||
//! Set 16'th channel be percussive (XG way)
|
|
||||||
adl_rt_bankChange(Renderer, 0x0F, 0x7F00);
|
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -153,7 +149,7 @@ void ADLMIDIDevice::HandleEvent(int status, int parm1, int parm2)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ME_PITCHWHEEL:
|
case ME_PITCHWHEEL:
|
||||||
adl_rt_pitchBend(Renderer, chan, parm1 | (parm2 << 7));
|
adl_rt_pitchBendML(Renderer, chan, parm2, parm1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue