From 90f8b60438d59a1871a5ebf80a279c0eeea7a1a7 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Wed, 4 Jul 2018 00:25:35 +0300 Subject: Added instrument rhythm-mode related enums into the public header --- src/wopl/wopl_file.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/wopl/wopl_file.h') 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 -- cgit v1.2.3 From e6d67761951b7d0c61adba0a3420379c04864ff3 Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Wed, 4 Jul 2018 00:48:23 +0300 Subject: Another typo fixes, begin to document all public functions --- src/wopl/wopl_file.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/wopl/wopl_file.h') diff --git a/src/wopl/wopl_file.h b/src/wopl/wopl_file.h index 6fd36f8..ac89360 100644 --- a/src/wopl/wopl_file.h +++ b/src/wopl/wopl_file.h @@ -89,9 +89,12 @@ typedef enum WOPL_RhythmMode /* RythmMode: TomTom */ WOPL_RM_TomTom = 0x18, /* RythmMode: Cymbell */ - WOPL_RM_Cymball = 0x20, + WOPL_RM_Cymbal = 0x20, /* RythmMode: HiHat */ - WOPL_RM_HiHat = 0x28 + WOPL_RM_HiHat = 0x28, + + /* DEPRECATED: It has typo. Don't use it! */ + WOPL_RM_Cymball = WOPL_RM_Cymbal } WOPL_RhythmMode; /* DEPRECATED: It has typo. Don't use it! */ -- cgit v1.2.3 From 63f0c95a978902e0896513ca4c7e7e3907da7b9d Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Wed, 4 Jul 2018 03:53:49 +0300 Subject: Remove deprecated enums from WOPL file processor --- src/wopl/wopl_file.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/wopl/wopl_file.h') diff --git a/src/wopl/wopl_file.h b/src/wopl/wopl_file.h index ac89360..6bc4fa9 100644 --- a/src/wopl/wopl_file.h +++ b/src/wopl/wopl_file.h @@ -73,9 +73,6 @@ typedef enum WOPL_InstrumentFlags /* RythmMode flags mask */ 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; @@ -92,9 +89,6 @@ typedef enum WOPL_RhythmMode WOPL_RM_Cymbal = 0x20, /* RythmMode: HiHat */ WOPL_RM_HiHat = 0x28, - - /* DEPRECATED: It has typo. Don't use it! */ - WOPL_RM_Cymball = WOPL_RM_Cymbal } WOPL_RhythmMode; /* DEPRECATED: It has typo. Don't use it! */ -- cgit v1.2.3 From 4664f286e238e97d0d6b3bc4dff5f0640a277e7f Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Sun, 8 Jul 2018 05:06:10 +0300 Subject: Small comma fix in WOPL parser header --- src/wopl/wopl_file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wopl/wopl_file.h') diff --git a/src/wopl/wopl_file.h b/src/wopl/wopl_file.h index 6bc4fa9..fa270b6 100644 --- a/src/wopl/wopl_file.h +++ b/src/wopl/wopl_file.h @@ -88,7 +88,7 @@ typedef enum WOPL_RhythmMode /* RythmMode: Cymbell */ WOPL_RM_Cymbal = 0x20, /* RythmMode: HiHat */ - WOPL_RM_HiHat = 0x28, + WOPL_RM_HiHat = 0x28 } WOPL_RhythmMode; /* DEPRECATED: It has typo. Don't use it! */ -- cgit v1.2.3