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

Replaced all our internal use of the old AudioSampleBuffer name with AudioBuffer<float> (for which AudioSampleBuffer is just a typedef)

This commit is contained in:
jules 2017-10-30 14:52:47 +00:00
parent 6b45923426
commit aecb819985
67 changed files with 338 additions and 358 deletions

View file

@ -60,7 +60,7 @@ public:
void releaseResources() override { reset(); }
void processBlock (AudioSampleBuffer& buffer, MidiBuffer&) override
void processBlock (AudioBuffer<float>& buffer, MidiBuffer&) override
{
for (int ch = 0; ch < buffer.getNumChannels(); ++ch)
{
@ -79,8 +79,8 @@ public:
channelTime = jmax (0, channelTime - buffer.getNumSamples());
}
const int fillSamples = jmin (static_cast<int> (std::ceil (getSampleRate())) - sampleOffset,
buffer.getNumSamples());
auto fillSamples = jmin (static_cast<int> (std::ceil (getSampleRate())) - sampleOffset,
buffer.getNumSamples());
if (isPositiveAndBelow (channelClicked, buffer.getNumChannels()))
{
@ -126,7 +126,7 @@ public:
//==============================================================================
void getStateInformation (MemoryBlock&) override {}
void setStateInformation (const void* , int) override {}
void setStateInformation (const void*, int) override {}
void channelButtonClicked (int channelIndex) override
{
@ -141,8 +141,8 @@ public:
void handleAsyncUpdate() override
{
if (AudioProcessorEditor* editor = getActiveEditor())
if (SurroundEditor* surroundEditor = dynamic_cast<SurroundEditor*> (editor))
if (auto* editor = getActiveEditor())
if (auto* surroundEditor = dynamic_cast<SurroundEditor*> (editor))
surroundEditor->updateGUI();
}
@ -151,6 +151,7 @@ private:
Array<float> alphaCoeffs;
int channelClicked;
int sampleOffset;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SurroundProcessor)
};