|
|
@@ -1843,16 +1843,16 @@ public: |
|
|
|
|
|
|
|
if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr) |
|
|
|
{ |
|
|
|
fDescriptor->dispatcher(fHandle, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, newBufferSize, nullptr, 0.0f); |
|
|
|
fDescriptor->dispatcher(fHandle, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, static_cast<intptr_t>(newBufferSize), nullptr, 0.0f); |
|
|
|
|
|
|
|
if (fHandle2 != nullptr) |
|
|
|
fDescriptor->dispatcher(fHandle2, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, newBufferSize, nullptr, 0.0f); |
|
|
|
fDescriptor->dispatcher(fHandle2, PLUGIN_OPCODE_BUFFER_SIZE_CHANGED, 0, static_cast<intptr_t>(newBufferSize), nullptr, 0.0f); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void sampleRateChanged(const double newSampleRate) override |
|
|
|
{ |
|
|
|
CARLA_ASSERT_INT(newSampleRate > 0.0, (int)newSampleRate); |
|
|
|
CARLA_ASSERT_INT(newSampleRate > 0.0, newSampleRate); |
|
|
|
carla_debug("NativePlugin::sampleRateChanged(%g)", newSampleRate); |
|
|
|
|
|
|
|
if (fDescriptor != nullptr && fDescriptor->dispatcher != nullptr) |
|
|
|