summaryrefslogtreecommitdiff
path: root/include/gba
diff options
context:
space:
mode:
authorMichael Panzlaff <michael.panzlaff@fau.de>2020-12-11 16:06:18 +0100
committerMichael Panzlaff <michael.panzlaff@fau.de>2020-12-11 16:33:58 +0100
commitf177c736fc722a2168a105b595888a0e6a6d5c02 (patch)
tree38e57b52bf33c5bbeab67bf4754b7a90d13eb31c /include/gba
parent15ff55eee58bd246d60f97c7ade919519f645654 (diff)
more CgbSound decipher work
Diffstat (limited to 'include/gba')
-rw-r--r--include/gba/m4a_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gba/m4a_internal.h b/include/gba/m4a_internal.h
index e09169ab8..6ec9e3854 100644
--- a/include/gba/m4a_internal.h
+++ b/include/gba/m4a_internal.h
@@ -75,11 +75,15 @@ struct ToneData
#define SOUND_CHANNEL_SF_ENV_ATTACK 0x03
#define SOUND_CHANNEL_SF_ENV_DECAY 0x02
#define SOUND_CHANNEL_SF_ENV_SUSTAIN 0x01
+#define SOUND_CHANNEL_SF_ENV_RELEASE 0x00
#define SOUND_CHANNEL_SF_ON (SOUND_CHANNEL_SF_START | SOUND_CHANNEL_SF_STOP | SOUND_CHANNEL_SF_IEC | SOUND_CHANNEL_SF_ENV)
#define CGB_CHANNEL_MO_PIT 0x02
#define CGB_CHANNEL_MO_VOL 0x01
+#define CGB_NRx2_ENV_DIR_DEC 0x00
+#define CGB_NRx2_ENV_DIR_INC 0x08
+
struct CgbChannel
{
u8 statusFlags;