mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix warnings in audio plugin demo
This commit is contained in:
parent
41d75920b4
commit
86c9597d41
1 changed files with 2 additions and 1 deletions
3
examples/audio plugin demo/Source/PluginProcessor.cpp
Normal file → Executable file
3
examples/audio plugin demo/Source/PluginProcessor.cpp
Normal file → Executable file
|
|
@ -250,6 +250,7 @@ void JuceDemoPluginAudioProcessor::process (AudioBuffer<FloatType>& buffer,
|
|||
template <typename FloatType>
|
||||
void JuceDemoPluginAudioProcessor::applyGain (AudioBuffer<FloatType>& buffer, AudioBuffer<FloatType>& delayBuffer)
|
||||
{
|
||||
ignoreUnused (delayBuffer);
|
||||
const float gainLevel = *gainParam;
|
||||
|
||||
for (int channel = 0; channel < getNumInputChannels(); ++channel)
|
||||
|
|
@ -272,7 +273,7 @@ void JuceDemoPluginAudioProcessor::applyDelay (AudioBuffer<FloatType>& buffer, A
|
|||
|
||||
for (int i = 0; i < numSamples; ++i)
|
||||
{
|
||||
const float in = channelData[i];
|
||||
const FloatType in = channelData[i];
|
||||
channelData[i] += delayData[delayPos];
|
||||
delayData[delayPos] = (delayData[delayPos] + in) * delayLevel;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue