1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioBuffer: Minor correction in documentation

This commit is contained in:
attila 2022-12-14 18:38:52 +01:00
parent a97c1d7ee0
commit edb4ef67e8

View file

@ -877,7 +877,11 @@ public:
@param numSamples the number of samples to process
@param startGain the gain to apply to the first sample (this is multiplied with
the source samples before they are added to this buffer)
@param endGain the gain to apply to the final sample. The gain is linearly
@param endGain The gain that would apply to the sample after the final sample.
The gain that applies to the final sample is
(numSamples - 1) / numSamples * (endGain - startGain). This
ensures a continuous ramp when supplying the same value in
endGain and startGain in subsequent blocks. The gain is linearly
interpolated between the first and last samples.
*/
void addFromWithRamp (int destChannel,
@ -1043,7 +1047,11 @@ public:
@param numSamples the number of samples to process
@param startGain the gain to apply to the first sample (this is multiplied with
the source samples before they are copied to this buffer)
@param endGain the gain to apply to the final sample. The gain is linearly
@param endGain The gain that would apply to the sample after the final sample.
The gain that applies to the final sample is
(numSamples - 1) / numSamples * (endGain - startGain). This
ensures a continuous ramp when supplying the same value in
endGain and startGain in subsequent blocks. The gain is linearly
interpolated between the first and last samples.
@see addFrom