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 */ \