mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AAX latency reporting.
This commit is contained in:
parent
cbf8b5e8a2
commit
e6e91e2c62
1 changed files with 5 additions and 7 deletions
|
|
@ -423,7 +423,7 @@ struct AAXClasses
|
|||
|
||||
case JUCEAlgorithmIDs::preparedFlag:
|
||||
{
|
||||
preparePlugin();
|
||||
const_cast<JuceAAX_Processor*>(this)->preparePlugin();
|
||||
|
||||
const size_t numObjects = dataSize / sizeof (uint32_t);
|
||||
uint32_t* const objects = static_cast <uint32_t*> (data);
|
||||
|
|
@ -665,7 +665,7 @@ struct AAXClasses
|
|||
}
|
||||
}
|
||||
|
||||
void preparePlugin() const
|
||||
void preparePlugin()
|
||||
{
|
||||
AAX_EStemFormat inputStemFormat = AAX_eStemFormat_None;
|
||||
check (Controller()->GetInputStemFormat (&inputStemFormat));
|
||||
|
|
@ -675,13 +675,11 @@ struct AAXClasses
|
|||
check (Controller()->GetOutputStemFormat (&outputStemFormat));
|
||||
const int numberOfOutputChannels = getNumChannelsForStemFormat (outputStemFormat);
|
||||
|
||||
int32_t bufferSize = 0;
|
||||
check (Controller()->GetSignalLatency (&bufferSize));
|
||||
AudioProcessor& audioProcessor = getPluginInstance();
|
||||
check (Controller()->SetSignalLatency (audioProcessor.getLatencySamples()));
|
||||
|
||||
const AAX_CSampleRate sampleRate = getSampleRate();
|
||||
|
||||
AudioProcessor& audioProcessor = getPluginInstance();
|
||||
audioProcessor.setPlayConfigDetails (numberOfInputChannels, numberOfOutputChannels, sampleRate, bufferSize);
|
||||
audioProcessor.setPlayConfigDetails (numberOfInputChannels, numberOfOutputChannels, sampleRate, 0);
|
||||
audioProcessor.prepareToPlay (sampleRate, bufferSize);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue