diff --git a/src/sfizz/Effects.h b/src/sfizz/Effects.h index 1d0947ed..17ded9de 100644 --- a/src/sfizz/Effects.h +++ b/src/sfizz/Effects.h @@ -106,6 +106,20 @@ public: */ void setGainToMix(float gain) { _gainToMix = gain; } + /** + * @brief Returns the gain for the main out + * + * @return float + */ + float gainToMain() const { return _gainToMain; } + + /** + * @brief Returns the gain for the mix out + * + * @return float + */ + float gainToMix() const { return _gainToMix; } + /** @brief Resets the input buffers to zero. */ @@ -143,6 +157,12 @@ public: */ void setSamplesPerBlock(int samplesPerBlock) noexcept; + /** + * @brief Return the number of effects in the bus + * + * @return size_t + */ + size_t numEffects() const noexcept; private: std::vector> _effects; AudioBuffer _inputs { EffectChannels, config::defaultSamplesPerBlock };