From 93b8726a3db33023f2c5a0cc5efba58583b87fb4 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Sat, 16 Dec 2017 04:01:26 +0300 Subject: Added realtime API, Experimental, not tested - Added Real-time public API, needed a test! (try to implement dummy VLC plugin with it) - Added abillity to change deep flags without song restart or a chip reset --- src/adlmidi_opl3.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/adlmidi_opl3.cpp') diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 273f548..9813621 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -458,6 +458,16 @@ void OPL3::updateFlags() } } +void OPL3::updateDeepFlags() +{ + for(unsigned card = 0; card < NumCards; ++card) + { + Poke(card, 0x0BD, regBD[card] = (HighTremoloMode * 0x80 + + HighVibratoMode * 0x40 + + AdlPercussionMode * 0x20)); + } +} + void OPL3::ChangeVolumeRangesModel(ADLMIDI_VolumeModels volumeModel) { switch(volumeModel) -- cgit v1.2.3