diff options
author | Vitaly Novichkov <Wohlstand@users.noreply.github.com> | 2018-10-06 03:24:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-06 03:24:05 +0300 |
commit | 3d70e34b258b1042aeea9dca13480cbb61610999 (patch) | |
tree | 7972745dc36ca6c0fdfe2c05ba1173bb4d6bdca6 /src/adlmidi_opl3.cpp | |
parent | 5e9be04e14cca96551cd19f5ee7597a11ad98a8a (diff) | |
parent | c542a7576de33ecc9c9744cf5a4df7d094af5c47 (diff) | |
download | libADLMIDI-3d70e34b258b1042aeea9dca13480cbb61610999.tar.gz libADLMIDI-3d70e34b258b1042aeea9dca13480cbb61610999.tar.bz2 libADLMIDI-3d70e34b258b1042aeea9dca13480cbb61610999.zip |
Merge pull request #184 from jpcima/reorganize
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 || |