summaryrefslogtreecommitdiff
path: root/src/inputprocessor.h
diff options
context:
space:
mode:
authorTheMarlboroMan <marlborometal@gmail.com>2020-11-15 16:50:27 +0100
committerTheMarlboroMan <marlborometal@gmail.com>2020-11-15 17:04:21 +0100
commiteb0a72576c71557c8bb64cfd319620f5ea7ba24c (patch)
treedf15c068870705d7c7847b8d98a760e058756f03 /src/inputprocessor.h
parentb0fa70c97c9b4886fb6e063664dc4d10daf12c1c (diff)
Implementation of the voice limiting feature.
Diffstat (limited to 'src/inputprocessor.h')
-rw-r--r--src/inputprocessor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/inputprocessor.h b/src/inputprocessor.h
index 3c2cd5a..971cc85 100644
--- a/src/inputprocessor.h
+++ b/src/inputprocessor.h
@@ -64,6 +64,11 @@ private:
bool processChoke(event_t& event, std::size_t pos, double resample_ratio);
bool processStop(event_t& event);
+ //! Ramps down samples from events_ds is there are more groups playing than
+ //! max_voices for a given instrument.
+ void limitVoices(std::size_t instrument_id, std::size_t max_voices,
+ float rampdown_time);
+
std::vector<std::unique_ptr<InputFilter>> filters;
Settings& settings;