summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/emuopts.h
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2021-09-24 19:40:10 +0200
committer hap <happppp@users.noreply.github.com>2021-09-24 19:40:10 +0200
commitc9c3cac6c25d6abe80280190c3c80b146fd58d4f (patch)
tree7bfaecd27a57132b15dad0d3f0119d954ec97103 /src/emu/emuopts.h
parent3a2ab1a6c6238aa2c027651ec854ade488034d43 (diff)
sound: make the compressor optional (clamp overdrive to -1.0-1.0 when off)
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 4d92ce5371c..3df399ce8d6 100644
--- a/src/emu/emuopts.h
+++ b/src/emu/emuopts.h
@@ -120,6 +120,7 @@
#define OPTION_SAMPLERATE "samplerate"
#define OPTION_SAMPLES "samples"
#define OPTION_VOLUME "volume"
+#define OPTION_COMPRESSOR "compressor"
#define OPTION_SPEAKER_REPORT "speaker_report"
// core input options
@@ -405,6 +406,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); }
+ bool compressor() const { return bool_value(OPTION_COMPRESSOR); }
int speaker_report() const { return int_value(OPTION_SPEAKER_REPORT); }
// core input options