summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Derrick Renaud <derrickr@mamedev.org>2009-10-03 13:09:02 +0000
committer Derrick Renaud <derrickr@mamedev.org>2009-10-03 13:09:02 +0000
commitdffbe9eff3fc293b527b83205e437c8fee2ec041 (patch)
tree3517ec9d1293c6703d9e544fa8bfa360551af638 /src
parent08a4572e09a30c046bde0025243fc7639f407503 (diff)
Minor cleanup, not worth mentioning.
Just commiting so it does not clash with Couriersud's work.
Diffstat (limited to 'src')
-rw-r--r--src/emu/sound/discrete.c6
-rw-r--r--src/emu/sound/discrete.h4
-rw-r--r--src/mame/audio/mw8080bw.c5
3 files changed, 7 insertions, 8 deletions
diff --git a/src/emu/sound/discrete.c b/src/emu/sound/discrete.c
index 6a2a06396c2..57e20d8fdf3 100644
--- a/src/emu/sound/discrete.c
+++ b/src/emu/sound/discrete.c
@@ -693,11 +693,11 @@ INLINE void update_main_nodes(discrete_info *info, int samples)
sn->ptr = sn->task->node_buf[sn->output_node];
}
+ if (DISCRETE_PROFILING)
+ info->total_samples += samples;
+
while (samples-- > 0)
{
- if (DISCRETE_PROFILING)
- info->total_samples++;
-
/* update source node buffer */
for (entry = info->source_list; entry != 0; entry = entry->next)
{
diff --git a/src/emu/sound/discrete.h b/src/emu/sound/discrete.h
index 9238506e8ca..4ce2dbc6f82 100644
--- a/src/emu/sound/discrete.h
+++ b/src/emu/sound/discrete.h
@@ -3744,9 +3744,9 @@ struct _discrete_info
/* list of "main" task nodes */
linked_list_entry *main_list; /* node_description * */
-
+
/* list of main source nodes */
-
+
linked_list_entry *source_list; /* discrete_source_node */
/* list of discrete blocks after prescan (IMPORT, DELETE, REPLACE) */
diff --git a/src/mame/audio/mw8080bw.c b/src/mame/audio/mw8080bw.c
index 465ef72bef3..20a2e28cfcd 100644
--- a/src/mame/audio/mw8080bw.c
+++ b/src/mame/audio/mw8080bw.c
@@ -2051,7 +2051,7 @@ WRITE8_DEVICE_HANDLER( clowns_audio_2_w )
#define SPACWALK_R304 RES_M(1)
#define SPACWALK_R305 RES_K(3680)
#define SPACWALK_R307 RES_K(20)
-#define SPACWALK_R308 RES_K(20) /* not labeled but beside R307 */
+#define SPACWALK_R308 RES_K(20) /* not labeled but it's beside R307 */
#define SPACWALK_R419 RES_K(2.7)
#define SPACWALK_R420 RES_K(20)
#define SPACWALK_R421 RES_K(11)
@@ -2068,7 +2068,7 @@ WRITE8_DEVICE_HANDLER( clowns_audio_2_w )
#define SPACWALK_C301 CAP_U(2.2)
#define SPACWALK_C302 CAP_U(2.2)
#define SPACWALK_C303 CAP_U(0.0047)
-#define SPACWALK_C304 CAP_U(0.0047) /* not labeled but beside C303 */
+#define SPACWALK_C304 CAP_U(0.0047) /* not labeled but it's beside C303 */
#define SPACWALK_C602 CAP_U(1)
@@ -2142,7 +2142,6 @@ DISCRETE_OP_AMP_TRIG_VCA(NODE_RELATIVE(NODE_35, _num), /* IC M2-3, pin 9 */
&spacwalk_sb_hit_tvca_info) \
/* Wrong values. Untested */ \
/* The rest of the circuit is a filter. \
- *The frequency response was calculated with SPICE. */ \
DISCRETE_FILTER2(NODE_RELATIVE(NODE_37, _num), \
1, /* ENAB */ \
NODE_RELATIVE(NODE_35, _num), /* INP0 */ \