Add introspection in the busses
This commit is contained in:
parent
090a5995db
commit
1ac68cc3d2
1 changed files with 20 additions and 0 deletions
|
|
@ -106,6 +106,20 @@ public:
|
||||||
*/
|
*/
|
||||||
void setGainToMix(float gain) { _gainToMix = gain; }
|
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.
|
@brief Resets the input buffers to zero.
|
||||||
*/
|
*/
|
||||||
|
|
@ -143,6 +157,12 @@ public:
|
||||||
*/
|
*/
|
||||||
void setSamplesPerBlock(int samplesPerBlock) noexcept;
|
void setSamplesPerBlock(int samplesPerBlock) noexcept;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Return the number of effects in the bus
|
||||||
|
*
|
||||||
|
* @return size_t
|
||||||
|
*/
|
||||||
|
size_t numEffects() const noexcept;
|
||||||
private:
|
private:
|
||||||
std::vector<std::unique_ptr<Effect>> _effects;
|
std::vector<std::unique_ptr<Effect>> _effects;
|
||||||
AudioBuffer<float> _inputs { EffectChannels, config::defaultSamplesPerBlock };
|
AudioBuffer<float> _inputs { EffectChannels, config::defaultSamplesPerBlock };
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue