Add introspection in the busses

This commit is contained in:
Paul Fd 2020-03-06 11:07:56 +01:00
parent 090a5995db
commit 1ac68cc3d2

View file

@ -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<std::unique_ptr<Effect>> _effects;
AudioBuffer<float> _inputs { EffectChannels, config::defaultSamplesPerBlock };