mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Increased the Xcode warning level for some demo code and fixed resulting warnings
This commit is contained in:
parent
d3c9577668
commit
7bc75e24c1
8 changed files with 22 additions and 21 deletions
|
|
@ -101,7 +101,7 @@ public:
|
|||
pairButton.setEnabled (false);
|
||||
|
||||
addAndMakeVisible (pairButton);
|
||||
pairButton.onClick = [this]
|
||||
pairButton.onClick = []
|
||||
{
|
||||
RuntimePermissions::request (RuntimePermissions::bluetoothMidi,
|
||||
[] (bool wasGranted)
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ public:
|
|||
// cycle through the delay line and apply a simple averaging filter
|
||||
for (auto i = 0; i < numSamples; ++i)
|
||||
{
|
||||
auto nextPos = (int) ((pos + 1) % delayLine.size());
|
||||
auto nextPos = (pos + 1) % delayLine.size();
|
||||
|
||||
delayLine[nextPos] = (float) (decay * 0.5 * (delayLine[nextPos] + delayLine[pos]));
|
||||
outBuffer[i] += delayLine[pos];
|
||||
|
|
@ -151,7 +151,7 @@ private:
|
|||
excitationSample.end(),
|
||||
delayLine.begin(),
|
||||
[this] (double sample) { return static_cast<float> (amplitude * sample); } );
|
||||
};
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
const double decay = 0.998;
|
||||
|
|
@ -160,7 +160,7 @@ private:
|
|||
Atomic<int> doPluckForNextBuffer;
|
||||
|
||||
std::vector<float> excitationSample, delayLine;
|
||||
int pos = 0;
|
||||
size_t pos = 0;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StringSynthesiser)
|
||||
};
|
||||
|
|
@ -294,7 +294,7 @@ public:
|
|||
{
|
||||
memcpy (channelData,
|
||||
bufferToFill.buffer->getReadPointer (0),
|
||||
bufferToFill.numSamples * sizeof (float));
|
||||
((size_t) bufferToFill.numSamples) * sizeof (float));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue