summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/nes_defs.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:04:08 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-22 16:04:08 +0200
commit5f3d4fb33da4304e417a0e142e82e3d292646465 (patch)
treea2ad7441fc3f34c6aa2b2a5bd35f2aeed47ee2e4 /src/devices/sound/nes_defs.h
parent346a42383e267d087900bff7df72609c20f9ff5f (diff)
some TRUE/FALSE cleanup (nw)
Diffstat (limited to 'src/devices/sound/nes_defs.h')
-rw-r--r--src/devices/sound/nes_defs.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/devices/sound/nes_defs.h b/src/devices/sound/nes_defs.h
index 94dc75b18f7..71614b31cd6 100644
--- a/src/devices/sound/nes_defs.h
+++ b/src/devices/sound/nes_defs.h
@@ -28,12 +28,6 @@
#ifndef __NES_DEFS_H__
#define __NES_DEFS_H__
-/* BOOLEAN CONSTANTS */
-#ifndef TRUE
-#define TRUE 1
-#define FALSE 0
-#endif
-
/* REGULAR TYPE DEFINITIONS */
typedef int8_t int8;
typedef int16_t int16;
@@ -41,7 +35,6 @@ typedef int32_t int32;
typedef uint8_t uint8;
typedef uint16_t uint16;
typedef uint32_t uint32;
-typedef uint8_t boolean;
/* QUEUE TYPES */
@@ -118,7 +111,7 @@ struct square_t
float sweep_phase;
uint8 adder;
uint8 env_vol;
- boolean enabled;
+ bool enabled;
};
/* Triangle Wave */
@@ -147,8 +140,8 @@ struct triangle_t
float phaseacc;
float output_vol;
uint8 adder;
- boolean counter_started;
- boolean enabled;
+ bool counter_started;
+ bool enabled;
};
/* Noise Wave */
@@ -176,7 +169,7 @@ struct noise_t
float output_vol;
float env_phase;
uint8 env_vol;
- boolean enabled;
+ bool enabled;
};
/* DPCM Wave */
@@ -207,8 +200,8 @@ struct dpcm_t
float phaseacc;
float output_vol;
uint8 cur_byte;
- boolean enabled;
- boolean irq_occurred;
+ bool enabled;
+ bool irq_occurred;
address_space *memory;
signed char vol;
};