diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-10-05 19:07:54 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-10-05 19:21:57 +0200 |
commit | 8c33b86d581183c16e5ca32f8775e7994cf25729 (patch) | |
tree | 1891c3c4f402b41583951aab748922e6fac60d6b /src/adlmidi_opl3.cpp | |
parent | 5e9be04e14cca96551cd19f5ee7597a11ad98a8a (diff) | |
download | libADLMIDI-8c33b86d581183c16e5ca32f8775e7994cf25729.tar.gz libADLMIDI-8c33b86d581183c16e5ca32f8775e7994cf25729.tar.bz2 libADLMIDI-8c33b86d581183c16e5ca32f8775e7994cf25729.zip |
reorganize the OPL3 chip manager code
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r-- | src/adlmidi_opl3.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index f3672d3..0f977e2 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -21,6 +21,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include "adlmidi_opl3.hpp" #include "adlmidi_private.hpp" #include <stdlib.h> #include <cassert> @@ -148,6 +149,13 @@ static const uint16_t g_channelsMap[23] = Ports: ??? */ +enum +{ + OPL_PANNING_LEFT = 0x10, + OPL_PANNING_RIGHT = 0x20, + OPL_PANNING_BOTH = 0x30 +}; + static adlinsdata2 makeEmptyInstrument() { adlinsdata2 ins; @@ -181,6 +189,10 @@ OPL3::OPL3() : #endif } +OPL3::~OPL3() +{ +} + bool OPL3::setupLocked() { return (m_musicMode == MODE_CMF || |