mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
Fixed a minor typo in VST3 hosting.
This commit is contained in:
parent
4a96fc6ed2
commit
43cac64c42
1 changed files with 4 additions and 9 deletions
|
|
@ -428,16 +428,11 @@ public:
|
|||
|
||||
if (hasFlag (flags, Vst::kIoChanged))
|
||||
{
|
||||
double sampleRate = owner->getSampleRate();
|
||||
int numSamples = owner->getBlockSize();
|
||||
const double sampleRate = owner->getSampleRate();
|
||||
const int blockSize = owner->getBlockSize();
|
||||
|
||||
if (sampleRate <= 8000.0)
|
||||
sampleRate = 44100.0;
|
||||
|
||||
if (numSamples <= 0)
|
||||
numSamples = 1024;
|
||||
|
||||
owner->prepareToPlay (owner->getSampleRate(), owner->getBlockSize());
|
||||
owner->prepareToPlay (sampleRate >= 8000 ? sampleRate : 44100.0,
|
||||
blockSize > 0 ? blockSize : 1024);
|
||||
}
|
||||
|
||||
if (hasFlag (flags, Vst::kLatencyChanged))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue