aboutsummaryrefslogtreecommitdiff
path: root/include/adlmidi.hpp
diff options
context:
space:
mode:
authorVitaly Novichkov <Wohlstand@users.noreply.github.com>2018-05-16 19:31:14 +0200
committerGitHub <noreply@github.com>2018-05-16 19:31:14 +0200
commitaa26e965a62e03050f68cbe8cdc3a7ca2194a0c6 (patch)
tree365841b9e378395ebc0a35edc8c684b64b620a2c /include/adlmidi.hpp
parenta8ec2f990a624136ca3eefa39e3e87e92aea5a2e (diff)
parent9ca088f9c0f6183c350c68400d950879d0366982 (diff)
downloadlibADLMIDI-aa26e965a62e03050f68cbe8cdc3a7ca2194a0c6.tar.gz
libADLMIDI-aa26e965a62e03050f68cbe8cdc3a7ca2194a0c6.tar.bz2
libADLMIDI-aa26e965a62e03050f68cbe8cdc3a7ca2194a0c6.zip
Merge pull request #90 from jpcima/cpp-extras
make the AdlInstrumentTester a P-Impl
Diffstat (limited to 'include/adlmidi.hpp')
-rw-r--r--include/adlmidi.hpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/include/adlmidi.hpp b/include/adlmidi.hpp
index 63f2abd..6d01b8d 100644
--- a/include/adlmidi.hpp
+++ b/include/adlmidi.hpp
@@ -24,24 +24,15 @@
#ifndef ADLMIDI_HPP
#define ADLMIDI_HPP
-#include "adlmidi.h"
-
-#include <stdint.h>
-#include <vector>
-
-class OPL3;
-class MIDIplay;
+struct ADL_MIDIPlayer;
class AdlInstrumentTester
{
- uint32_t cur_gm;
- uint32_t ins_idx;
- std::vector<uint32_t> adl_ins_list;
- OPL3 *opl;
- MIDIplay * play;
+ struct Impl;
+ Impl *P;
public:
- AdlInstrumentTester(ADL_MIDIPlayer *device);
+ explicit AdlInstrumentTester(ADL_MIDIPlayer *device);
virtual ~AdlInstrumentTester();
// Find list of adlib instruments that supposedly implement this GM
@@ -51,6 +42,10 @@ public:
void NextGM(int offset);
void NextAdl(int offset);
bool HandleInputChar(char ch);
+
+private:
+ AdlInstrumentTester(const AdlInstrumentTester &);
+ AdlInstrumentTester &operator=(const AdlInstrumentTester &);
};
#endif //ADLMIDI_HPP