aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_private.hpp
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-10-05 20:36:31 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-10-05 20:36:31 +0200
commit6bb43bedde33404428f1baa75c1f0f97896a5cc7 (patch)
treea0eec74a3ef366188881aaa158f87363606326d2 /src/adlmidi_private.hpp
parent046214a0130922baa322d195ae39c813693c446b (diff)
downloadlibADLMIDI-6bb43bedde33404428f1baa75c1f0f97896a5cc7.tar.gz
libADLMIDI-6bb43bedde33404428f1baa75c1f0f97896a5cc7.tar.bz2
libADLMIDI-6bb43bedde33404428f1baa75c1f0f97896a5cc7.zip
reorganize around a lighter adlmidi_private header
Diffstat (limited to 'src/adlmidi_private.hpp')
-rw-r--r--src/adlmidi_private.hpp33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/adlmidi_private.hpp b/src/adlmidi_private.hpp
index 8e95ea5..d16c8f6 100644
--- a/src/adlmidi_private.hpp
+++ b/src/adlmidi_private.hpp
@@ -49,7 +49,6 @@ typedef __int64 ssize_t;
# else
typedef __int32 ssize_t;
# endif
-# define NOMINMAX 1 //Don't override std::min and std::max
# else
# ifdef _WIN64
typedef int64_t ssize_t;
@@ -130,18 +129,18 @@ typedef int32_t ssize_t;
#define INT32_MAX 0x7fffffff
#endif
-#include "file_reader.hpp"
+class FileAndMemReader;
#ifndef ADLMIDI_DISABLE_MIDI_SEQUENCER
// Rename class to avoid ABI collisions
#define BW_MidiSequencer AdlMidiSequencer
-#include "midi_sequencer.hpp"
+class BW_MidiSequencer;
typedef BW_MidiSequencer MidiSequencer;
+typedef struct BW_MidiRtInterface BW_MidiRtInterface;
#endif//ADLMIDI_DISABLE_MIDI_SEQUENCER
-#ifndef ADLMIDI_HW_OPL
-#include "chips/opl_chip_base.h"
-#endif
+class OPL3;
+class OPLChipBase;
#include "adldata.hh"
@@ -153,7 +152,8 @@ typedef BW_MidiSequencer MidiSequencer;
#endif
#include "adlmidi_ptr.hpp"
-#include "adlmidi_opl3.hpp"
+
+class MIDIplay;
#define ADL_UNUSED(x) (void)x
@@ -215,25 +215,6 @@ inline int32_t adl_cvtU32(int32_t x)
}
-// I think, this is useless inside of Library
-/*
-struct FourChars
-{
- char ret[4];
-
- FourChars(const char *s)
- {
- for(unsigned c = 0; c < 4; ++c)
- ret[c] = s[c];
- }
- FourChars(unsigned w) // Little-endian
- {
- for(unsigned c = 0; c < 4; ++c)
- ret[c] = static_cast<int8_t>((w >>(c * 8)) & 0xFF);
- }
-};
-*/
-
#if defined(ADLMIDI_AUDIO_TICK_HANDLER)
extern void adl_audioTickHandler(void *instance, uint32_t chipId, uint32_t rate);
#endif