could we have the following added?
LinearSmoothedValue::applyGain (AudioBuffer<FloatType>& buffer, int startSample, int numSamples) noexcept;
at the moment we only have :
LinearSmoothedValue::applyGain (AudioBuffer<FloatType>& buffer, int numSamples) noexcept;
But often this is not appropriate (in the context of SynthesiserSound::renderNextBlock() for instance), and we must create a temporary buffer to call it.
Perhaps the one without startSample
should simply be removed.