|
|
@@ -1221,6 +1221,20 @@ public: |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
void callback(const bool sendHost, const bool sendOsc, |
|
|
|
const EngineCallbackOpcode action, const uint pluginId, |
|
|
|
const int value1, const int value2, const int value3, |
|
|
|
const float valuef, const char* const valueStr) noexcept override |
|
|
|
{ |
|
|
|
if (action == ENGINE_CALLBACK_PROJECT_LOAD_FINISHED && fTimebaseMaster) |
|
|
|
{ |
|
|
|
// project finished loading, need to set bpm here, so we force an update of timebase master |
|
|
|
transportRelocate(pData->timeInfo.frame); |
|
|
|
} |
|
|
|
|
|
|
|
CarlaEngine::callback(sendHost, sendOsc, action, pluginId, value1, value2, value3, valuef, valueStr); |
|
|
|
} |
|
|
|
|
|
|
|
bool setBufferSizeAndSampleRate(const uint bufferSize, const double sampleRate) override |
|
|
|
{ |
|
|
|
CARLA_SAFE_ASSERT_RETURN(carla_isEqual(pData->sampleRate, sampleRate), false); |
|
|
|