1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

New AudioSampleBuffer::applyGain method.

This commit is contained in:
jules 2013-01-19 22:19:40 +00:00
parent d6c3fed57f
commit d522a50e97
2 changed files with 8 additions and 0 deletions

View file

@ -292,6 +292,11 @@ void AudioSampleBuffer::applyGain (const int startSample,
applyGain (i, startSample, numSamples, gain);
}
void AudioSampleBuffer::applyGain (const float gain) noexcept
{
applyGain (0, size, gain);
}
void AudioSampleBuffer::applyGainRamp (const int startSample,
const int numSamples,
const float startGain,

View file

@ -241,6 +241,9 @@ public:
int numSamples,
float gain) noexcept;
/** Applies a gain multiple to all the audio data. */
void applyGain (float gain) noexcept;
/** Applies a range of gains to a region of a channel.
The gain that is applied to each sample will vary from