summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/speaker.h
diff options
context:
space:
mode:
author Aaron Giles <aaronsgiles@users.noreply.github.com>2020-07-22 14:07:34 -0700
committer GitHub <noreply@github.com>2020-07-22 14:07:34 -0700
commitf23db5da38f1e027a93a7d9afab5814122cec1f5 (patch)
treeda6b7fd402e5040157d2557a2bd21e21f789e0c6 /src/emu/speaker.h
parent1c4da1d0a636b5f0b468dfa45df069ac8e38cf8d (diff)
Added netlist-based audio to early Cinematronics vector games (#6979)
* Added netlist simulations for the following games: Space War, Barrier, Star Hawk, Speed Freak, Star Castle, War of the Worlds, Sundance, Tail Gunner, Rip Off, Armor Attack, Warrior, Solar Quest, Boxing Bugs. Removed previous samples-based sound. [Aaron Giles, Couriersud] * Added built-in minimal artwork for Warrior. [Aaron Giles] * Changed speaker maximum sample tracking to be based on new compile-time define SPEAKER_TRACK_MAX_SAMPLE instead of MAME_DEBUG. [Aaron Giles] * Modernized 74164 and 74393 netlist TTL devices. [Aaron Giles]
Diffstat (limited to 'src/emu/speaker.h')
-rw-r--r--src/emu/speaker.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/emu/speaker.h b/src/emu/speaker.h
index e4f62fb4661..0aa3dc6b66f 100644
--- a/src/emu/speaker.h
+++ b/src/emu/speaker.h
@@ -26,6 +26,15 @@
#pragma once
+#ifndef SPEAKER_TRACK_MAX_SAMPLE
+#ifdef MAME_DEBUG
+#define SPEAKER_TRACK_MAX_SAMPLE (1)
+#else
+#define SPEAKER_TRACK_MAX_SAMPLE (0)
+#endif
+#endif
+
+
//**************************************************************************
// GLOBAL VARIABLES
//**************************************************************************
@@ -81,7 +90,7 @@ protected:
double m_z;
// internal state
-#ifdef MAME_DEBUG
+#if SPEAKER_TRACK_MAX_SAMPLE
s32 m_max_sample; // largest sample value we've seen
s32 m_clipped_samples; // total number of clipped samples
s32 m_total_samples; // total number of samples