aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/adlmidi.h18
-rw-r--r--src/wopl/wopl_file.h12
2 files changed, 27 insertions, 3 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index bf146db..3345fe6 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -408,10 +408,28 @@ typedef enum ADL_InstrumentFlags
ADLMIDI_Ins_Pseudo4op = 0x02,
/* Is a blank instrument entry */
ADLMIDI_Ins_IsBlank = 0x04,
+
+ /* RythmMode flags mask */
+ ADLMIDI_Ins_RhythmModeMask = 0x38,
+
/* Mask of the flags range */
ADLMIDI_Ins_ALL_MASK = 0x07,
} ADL_InstrumentFlags;
+typedef enum ADL_RhythmMode
+{
+ /* RythmMode: BassDrum */
+ WOPL_RM_BassDrum = 0x08,
+ /* RythmMode: Snare */
+ WOPL_RM_Snare = 0x10,
+ /* RythmMode: TomTom */
+ WOPL_RM_TomTom = 0x18,
+ /* RythmMode: Cymbell */
+ WOPL_RM_Cymball = 0x20,
+ /* RythmMode: HiHat */
+ WOPL_RM_HiHat = 0x28
+} ADL_RhythmMode;
+
typedef struct ADL_Operator
{
/* AM/Vib/Env/Ksr/FMult characteristics */
diff --git a/src/wopl/wopl_file.h b/src/wopl/wopl_file.h
index 0e38842..6fd36f8 100644
--- a/src/wopl/wopl_file.h
+++ b/src/wopl/wopl_file.h
@@ -71,13 +71,16 @@ typedef enum WOPL_InstrumentFlags
WOPL_Ins_IsBlank = 0x04,
/* RythmMode flags mask */
- WOPL_RythmModeMask = 0x38,
+ WOPL_RhythmModeMask = 0x38,
+
+ /* DEPRECATED: It has typo. Don't use it! */
+ WOPL_RythmModeMask = WOPL_RhythmModeMask,
/* Mask of the flags range */
WOPL_Ins_ALL_MASK = 0x07
} WOPL_InstrumentFlags;
-typedef enum WOPL_RythmMode
+typedef enum WOPL_RhythmMode
{
/* RythmMode: BassDrum */
WOPL_RM_BassDrum = 0x08,
@@ -89,7 +92,10 @@ typedef enum WOPL_RythmMode
WOPL_RM_Cymball = 0x20,
/* RythmMode: HiHat */
WOPL_RM_HiHat = 0x28
-} WOPL_RythmMode;
+} WOPL_RhythmMode;
+
+/* DEPRECATED: It has typo. Don't use it! */
+typedef WOPL_RhythmMode WOPL_RythmMode;
/* Error codes */
typedef enum WOPL_ErrorCodes