diff options
| author | 2025-07-16 16:46:17 +0200 | |
|---|---|---|
| committer | 2025-07-16 16:46:17 +0200 | |
| commit | 761ade32c6ef055b72b685d19ddf0205f220efc0 (patch) | |
| tree | db1b598e95f7b3cadab3d0f9050112e98d492ee7 | |
| parent | 893e61d051c31ac2f59624d8dea4b11f968e7cfb (diff) | |
docs: add note about compressor
| -rw-r--r-- | docs/source/usingmame/mamemenus.rst | 13 | ||||
| -rw-r--r-- | src/frontend/mame/ui/audio_effect_compressor.cpp | 4 |
2 files changed, 11 insertions, 6 deletions
diff --git a/docs/source/usingmame/mamemenus.rst b/docs/source/usingmame/mamemenus.rst index 7188508b1ef..5585f5a2ca2 100644 --- a/docs/source/usingmame/mamemenus.rst +++ b/docs/source/usingmame/mamemenus.rst @@ -413,12 +413,14 @@ quiet sounds more audible over background noise. The parameters are: +Threshold + The level at which the amplification fully stops. +Ratio + The maximum amplification. Attack The reaction time to loud sounds to reduce the amplification. Release The reaction time to allow the amplification to go back up. -Ratio - The maximum amplification. Input gain The amplification level at the input. Output gain @@ -426,8 +428,6 @@ Output gain Convexity The shape of the relationship between distance to the threshold and ratio value. Higher values give a steeper shape. -Threshold - The level at which the amplification fully stops. Channel link At 100%, all channels of an output device are amplified identically, while at 0% they are fully independent. Intermediate values give intermediate @@ -442,6 +442,11 @@ Ceiling The maximum level allowed just before the output amplification. Causes soft clipping at that level. +By setting **Attack* to 0 ms, **Release** to Infinite, and **Ratio** to +Infinity:1, the compressor will turn into a brickwall limiter (leave the +advanced settings to default). If you increase **Input gain** on top of that, +with a **Threshold** of eg. -3 dB, it will act like a dynamic normalizer. + Reverb effect ~~~~~~~~~~~~~ diff --git a/src/frontend/mame/ui/audio_effect_compressor.cpp b/src/frontend/mame/ui/audio_effect_compressor.cpp index 39f77395976..fb1161dc870 100644 --- a/src/frontend/mame/ui/audio_effect_compressor.cpp +++ b/src/frontend/mame/ui/audio_effect_compressor.cpp @@ -125,7 +125,7 @@ bool menu_audio_effect_compressor::handle(event const *ev) return true; case THRESHOLD: - m_effect->set_threshold(max(-60, m_effect->threshold() - (alt_pressed ? 10000 : ctrl_pressed ? 20 : shift_pressed ? 1 : 5))); + m_effect->set_threshold(max(-60, m_effect->threshold() - (alt_pressed ? 10000 : ctrl_pressed ? 12 : shift_pressed ? 1 : 3))); if(m_chain == 0xffff) machine().sound().default_effect_changed(m_entry); ev->item->set_subtext(format_db(m_effect->threshold())); @@ -240,7 +240,7 @@ bool menu_audio_effect_compressor::handle(event const *ev) return true; case THRESHOLD: - m_effect->set_threshold(min(6, m_effect->threshold() + (alt_pressed ? 10000 : ctrl_pressed ? 20 : shift_pressed ? 1 : 5))); + m_effect->set_threshold(min(6, m_effect->threshold() + (alt_pressed ? 10000 : ctrl_pressed ? 12 : shift_pressed ? 1 : 3))); if(m_chain == 0xffff) machine().sound().default_effect_changed(m_entry); ev->item->set_subtext(format_db(m_effect->threshold())); |
