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:
parent
d6c3fed57f
commit
d522a50e97
2 changed files with 8 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue