Make sure to report bufsize and samplerate changes in AU
This commit is contained in:
parent
5f918cf0b1
commit
43306dd2bc
1 changed files with 4 additions and 4 deletions
|
|
@ -270,11 +270,11 @@ public:
|
||||||
{
|
{
|
||||||
if (const double sampleRate = getSampleRate())
|
if (const double sampleRate = getSampleRate())
|
||||||
if (sampleRate > 0.0)
|
if (sampleRate > 0.0)
|
||||||
plugin.setSampleRate(sampleRate);
|
plugin.setSampleRate(sampleRate, true);
|
||||||
|
|
||||||
if (const int samplesPerBlock = getBlockSize())
|
if (const int samplesPerBlock = getBlockSize())
|
||||||
if (samplesPerBlock > 0)
|
if (samplesPerBlock > 0)
|
||||||
plugin.setBufferSize(static_cast<uint32_t>(samplesPerBlock));
|
plugin.setBufferSize(static_cast<uint32_t>(samplesPerBlock), true);
|
||||||
|
|
||||||
if (parameterCount != 0)
|
if (parameterCount != 0)
|
||||||
{
|
{
|
||||||
|
|
@ -313,8 +313,8 @@ protected:
|
||||||
DISTRHO_SAFE_ASSERT_RETURN(samplesPerBlock > 0,);
|
DISTRHO_SAFE_ASSERT_RETURN(samplesPerBlock > 0,);
|
||||||
|
|
||||||
plugin.deactivateIfNeeded();
|
plugin.deactivateIfNeeded();
|
||||||
plugin.setSampleRate(sampleRate);
|
plugin.setSampleRate(sampleRate, true);
|
||||||
plugin.setBufferSize(static_cast<uint32_t>(samplesPerBlock));
|
plugin.setBufferSize(static_cast<uint32_t>(samplesPerBlock), true);
|
||||||
plugin.activate();
|
plugin.activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue