summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emuopts.h
diff options
context:
space:
mode:
author Aaron Giles <aaronsgiles@users.noreply.github.com>2020-07-27 21:02:09 -0700
committer GitHub <noreply@github.com>2020-07-27 21:02:09 -0700
commit77450420af7a9642a662dddcee49b343227bb089 (patch)
tree5be9fb5697845a70677d7e424fa61465fc9ff9fc /src/emu/emuopts.h
parentc1804a45ec0f814453d53e36a1b7c31b8f690829 (diff)
speaker.cpp: Add new option -speaker_report <n> to help devs tune volume (#6995)
* Add new option speaker_report to report clipping and other statistics after each session. This replaces the previous compile-time define and offers more detail.
Diffstat (limited to 'src/emu/emuopts.h')
-rw-r--r--src/emu/emuopts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emu/emuopts.h b/src/emu/emuopts.h
index 648644304b0..bb989016cf3 100644
--- a/src/emu/emuopts.h
+++ b/src/emu/emuopts.h
@@ -119,6 +119,7 @@
#define OPTION_SAMPLERATE "samplerate"
#define OPTION_SAMPLES "samples"
#define OPTION_VOLUME "volume"
+#define OPTION_SPEAKER_REPORT "speaker_report"
// core input options
#define OPTION_COIN_LOCKOUT "coin_lockout"
@@ -399,6 +400,7 @@ public:
int sample_rate() const { return int_value(OPTION_SAMPLERATE); }
bool samples() const { return bool_value(OPTION_SAMPLES); }
int volume() const { return int_value(OPTION_VOLUME); }
+ int speaker_report() const { return int_value(OPTION_SPEAKER_REPORT); }
// core input options
bool coin_lockout() const { return bool_value(OPTION_COIN_LOCKOUT); }