mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +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:
parent
6b45923426
commit
aecb819985
67 changed files with 338 additions and 358 deletions
|
|
@ -114,14 +114,14 @@ bool IAAEffectProcessor::isBusesLayoutSupported (const BusesLayout& layouts) con
|
|||
return true;
|
||||
}
|
||||
|
||||
void IAAEffectProcessor::processBlock (AudioSampleBuffer& buffer, MidiBuffer&)
|
||||
void IAAEffectProcessor::processBlock (AudioBuffer<float>& buffer, MidiBuffer&)
|
||||
{
|
||||
const float gain = *parameters.getRawParameterValue ("gain");
|
||||
|
||||
const int totalNumInputChannels = getTotalNumInputChannels();
|
||||
const int totalNumOutputChannels = getTotalNumOutputChannels();
|
||||
auto totalNumInputChannels = getTotalNumInputChannels();
|
||||
auto totalNumOutputChannels = getTotalNumOutputChannels();
|
||||
|
||||
const int numSamples = buffer.getNumSamples();
|
||||
auto numSamples = buffer.getNumSamples();
|
||||
|
||||
for (int i = totalNumInputChannels; i < totalNumOutputChannels; ++i)
|
||||
buffer.clear (i, 0, buffer.getNumSamples());
|
||||
|
|
@ -164,6 +164,7 @@ void IAAEffectProcessor::getStateInformation (MemoryBlock& destData)
|
|||
void IAAEffectProcessor::setStateInformation (const void* data, int sizeInBytes)
|
||||
{
|
||||
auto xmlState = std::unique_ptr<XmlElement> (getXmlFromBinary (data, sizeInBytes));
|
||||
|
||||
if (xmlState.get() != nullptr)
|
||||
if (xmlState->hasTagName (parameters.state.getType()))
|
||||
parameters.state = ValueTree::fromXml (*xmlState);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue