diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-05-16 15:16:15 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-05-16 15:22:20 +0200 |
commit | e0576650d4b235c291ca68bf8d5aa6b7f6d3b6cf (patch) | |
tree | 1c03adad5b6ecd4673f9138d096f0f13476f819d /include/adlmidi.hpp | |
parent | a8ec2f990a624136ca3eefa39e3e87e92aea5a2e (diff) | |
download | libADLMIDI-e0576650d4b235c291ca68bf8d5aa6b7f6d3b6cf.tar.gz libADLMIDI-e0576650d4b235c291ca68bf8d5aa6b7f6d3b6cf.tar.bz2 libADLMIDI-e0576650d4b235c291ca68bf8d5aa6b7f6d3b6cf.zip |
make the AdlInstrumentTester a P-Impl
Diffstat (limited to 'include/adlmidi.hpp')
-rw-r--r-- | include/adlmidi.hpp | 21 |
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 |