diff --git a/source/backend/CarlaStandalone.cpp b/source/backend/CarlaStandalone.cpp index 6db521453..62a8f30ce 100644 --- a/source/backend/CarlaStandalone.cpp +++ b/source/backend/CarlaStandalone.cpp @@ -1730,7 +1730,7 @@ void carla_set_drywet(uint pluginId, float value) CarlaPlugin* const plugin(gStandalone.engine->getPlugin(pluginId)); CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,); - carla_debug("carla_set_drywet(%i, %f)", pluginId, value); + carla_debug("carla_set_drywet(%i, %f)", pluginId, static_cast(value)); return plugin->setDryWet(value, true, false); } @@ -1741,7 +1741,7 @@ void carla_set_volume(uint pluginId, float value) CarlaPlugin* const plugin(gStandalone.engine->getPlugin(pluginId)); CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,); - carla_debug("carla_set_volume(%i, %f)", pluginId, value); + carla_debug("carla_set_volume(%i, %f)", pluginId, static_cast(value)); return plugin->setVolume(value, true, false); } @@ -1752,7 +1752,7 @@ void carla_set_balance_left(uint pluginId, float value) CarlaPlugin* const plugin(gStandalone.engine->getPlugin(pluginId)); CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,); - carla_debug("carla_set_balance_left(%i, %f)", pluginId, value); + carla_debug("carla_set_balance_left(%i, %f)", pluginId, static_cast(value)); return plugin->setBalanceLeft(value, true, false); } @@ -1763,7 +1763,7 @@ void carla_set_balance_right(uint pluginId, float value) CarlaPlugin* const plugin(gStandalone.engine->getPlugin(pluginId)); CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,); - carla_debug("carla_set_balance_right(%i, %f)", pluginId, value); + carla_debug("carla_set_balance_right(%i, %f)", pluginId, static_cast(value)); return plugin->setBalanceRight(value, true, false); } @@ -1774,7 +1774,7 @@ void carla_set_panning(uint pluginId, float value) CarlaPlugin* const plugin(gStandalone.engine->getPlugin(pluginId)); CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,); - carla_debug("carla_set_panning(%i, %f)", pluginId, value); + carla_debug("carla_set_panning(%i, %f)", pluginId, static_cast(value)); return plugin->setPanning(value, true, false); } @@ -1811,7 +1811,7 @@ void carla_set_parameter_value(uint pluginId, uint32_t parameterId, float value) CarlaPlugin* const plugin(gStandalone.engine->getPlugin(pluginId)); CARLA_SAFE_ASSERT_RETURN(plugin != nullptr,); - carla_debug("carla_set_parameter_value(%i, %i, %f)", pluginId, parameterId, value); + carla_debug("carla_set_parameter_value(%i, %i, %f)", pluginId, parameterId, static_cast(value)); CARLA_SAFE_ASSERT_RETURN(parameterId < plugin->getParameterCount(),); return plugin->setParameterValue(parameterId, value, true, true, false); diff --git a/source/backend/engine/CarlaEngine.cpp b/source/backend/engine/CarlaEngine.cpp index 9b0b0c38b..19ddc838a 100644 --- a/source/backend/engine/CarlaEngine.cpp +++ b/source/backend/engine/CarlaEngine.cpp @@ -1312,10 +1312,12 @@ void CarlaEngine::callback(const bool sendHost, const bool sendOsc, #ifdef DEBUG if (pData->isIdling) carla_stdout("CarlaEngine::callback [while idling] (%i:%s, %i, %i, %i, %i, %f, \"%s\")", - action, EngineCallbackOpcode2Str(action), pluginId, value1, value2, value3, valuef, valueStr); + action, EngineCallbackOpcode2Str(action), pluginId, value1, value2, value3, + static_cast(valuef), valueStr); else if (action != ENGINE_CALLBACK_IDLE && action != ENGINE_CALLBACK_NOTE_ON && action != ENGINE_CALLBACK_NOTE_OFF) carla_debug("CarlaEngine::callback(%i:%s, %i, %i, %i, %i, %f, \"%s\")", - action, EngineCallbackOpcode2Str(action), pluginId, value1, value2, value3, valuef, valueStr); + action, EngineCallbackOpcode2Str(action), pluginId, value1, value2, value3, + static_cast(valuef), valueStr); #endif if (sendHost && pData->callback != nullptr) diff --git a/source/backend/plugin/CarlaPluginNative.cpp b/source/backend/plugin/CarlaPluginNative.cpp index d3f161e2d..2dd705331 100644 --- a/source/backend/plugin/CarlaPluginNative.cpp +++ b/source/backend/plugin/CarlaPluginNative.cpp @@ -2461,7 +2461,8 @@ protected: intptr_t handleDispatcher(const NativeHostDispatcherOpcode opcode, const int32_t index, const intptr_t value, void* const ptr, const float opt) { - carla_debug("CarlaPluginNative::handleDispatcher(%i, %i, " P_INTPTR ", %p, %f)", opcode, index, value, ptr, opt); + carla_debug("CarlaPluginNative::handleDispatcher(%i, %i, " P_INTPTR ", %p, %f)", + opcode, index, value, ptr, static_cast(opt)); intptr_t ret = 0; diff --git a/source/backend/plugin/CarlaPluginVST2.cpp b/source/backend/plugin/CarlaPluginVST2.cpp index 38eb43838..198d30dc5 100644 --- a/source/backend/plugin/CarlaPluginVST2.cpp +++ b/source/backend/plugin/CarlaPluginVST2.cpp @@ -1847,7 +1847,8 @@ protected: CARLA_SAFE_ASSERT_RETURN(fEffect != nullptr, 0); #ifdef DEBUG if (opcode != effIdle && opcode != effEditIdle && opcode != effProcessEvents) - carla_debug("CarlaPluginVST2::dispatcher(%02i:%s, %i, " P_INTPTR ", %p, %f)", opcode, vstEffectOpcode2str(opcode), index, value, ptr, opt); + carla_debug("CarlaPluginVST2::dispatcher(%02i:%s, %i, " P_INTPTR ", %p, %f)", + opcode, vstEffectOpcode2str(opcode), index, value, ptr, static_cast(opt)); #endif try { @@ -1859,7 +1860,8 @@ protected: { #ifdef DEBUG if (opcode != audioMasterGetTime) - carla_debug("CarlaPluginVST2::handleAudioMasterCallback(%02i:%s, %i, " P_INTPTR ", %p, %f)", opcode, vstMasterOpcode2str(opcode), index, value, ptr, opt); + carla_debug("CarlaPluginVST2::handleAudioMasterCallback(%02i:%s, %i, " P_INTPTR ", %p, %f)", + opcode, vstMasterOpcode2str(opcode), index, value, ptr, static_cast(opt)); #endif intptr_t ret = 0; @@ -2229,7 +2231,8 @@ protected: #endif default: - carla_debug("CarlaPluginVST2::handleAudioMasterCallback(%02i:%s, %i, " P_INTPTR ", %p, %f) UNDEF", opcode, vstMasterOpcode2str(opcode), index, value, ptr, opt); + carla_debug("CarlaPluginVST2::handleAudioMasterCallback(%02i:%s, %i, " P_INTPTR ", %p, %f) UNDEF", + opcode, vstMasterOpcode2str(opcode), index, value, ptr, static_cast(opt)); break; } @@ -2632,7 +2635,8 @@ private: { #if defined(DEBUG) && ! defined(CARLA_OS_WIN) if (opcode != audioMasterGetTime && opcode != audioMasterProcessEvents && opcode != audioMasterGetCurrentProcessLevel && opcode != audioMasterGetOutputLatency) - carla_debug("carla_vst_audioMasterCallback(%p, %02i:%s, %i, " P_INTPTR ", %p, %f)", effect, opcode, vstMasterOpcode2str(opcode), index, value, ptr, opt); + carla_debug("carla_vst_audioMasterCallback(%p, %02i:%s, %i, " P_INTPTR ", %p, %f)", + effect, opcode, vstMasterOpcode2str(opcode), index, value, ptr, static_cast(opt)); #endif switch (opcode) diff --git a/source/bridges-plugin/CarlaBridgePlugin.cpp b/source/bridges-plugin/CarlaBridgePlugin.cpp index 9220b441f..ae10f1771 100644 --- a/source/bridges-plugin/CarlaBridgePlugin.cpp +++ b/source/bridges-plugin/CarlaBridgePlugin.cpp @@ -344,7 +344,7 @@ private: { carla_debug("CarlaBridgePlugin::callback(%p, %i:%s, %i, %i, %i, %i, %f, \"%s\")", ptr, action, EngineCallbackOpcode2Str(action), - pluginId, value1, value2, value3, valuef, valueStr); + pluginId, value1, value2, value3, static_cast(valuef), valueStr); // ptr must not be null CARLA_SAFE_ASSERT_RETURN(ptr != nullptr,); diff --git a/source/native-plugins/audio-base.hpp b/source/native-plugins/audio-base.hpp index 2325f2e16..cc17c7ac5 100644 --- a/source/native-plugins/audio-base.hpp +++ b/source/native-plugins/audio-base.hpp @@ -338,7 +338,9 @@ public: carla_zeroFloats(fPollTempData, fPollTempSize); { - carla_debug("R: poll data - reading at %li:%02li", readFrame/fPool.sampleRate/60, (readFrame/fPool.sampleRate) % 60); + carla_debug("R: poll data - reading at %li:%02li", + readFrame/static_cast(fPool.sampleRate)/60, + (readFrame/static_cast(fPool.sampleRate)) % 60); ad_seek(fFilePtr, readFrame); size_t i = 0; diff --git a/source/native-plugins/midi-pattern.cpp b/source/native-plugins/midi-pattern.cpp index 1d6dd8ecb..82aa0683c 100644 --- a/source/native-plugins/midi-pattern.cpp +++ b/source/native-plugins/midi-pattern.cpp @@ -363,7 +363,7 @@ protected: #ifdef DEBUG carla_stdout("Playing at %f :: %03X:%03i:%03i", - float(double(midiEvent.time)*fTicksPerFrame), + static_cast(midiEvent.time)*fTicksPerFrame, midiEvent.data[0], midiEvent.data[1], midiEvent.data[2]); #endif diff --git a/source/plugin/carla-lv2.cpp b/source/plugin/carla-lv2.cpp index b4d10ce55..74c0b39d1 100644 --- a/source/plugin/carla-lv2.cpp +++ b/source/plugin/carla-lv2.cpp @@ -765,7 +765,8 @@ protected: intptr_t handleDispatcher(const NativeHostDispatcherOpcode opcode, const int32_t index, const intptr_t value, void* const ptr, const float opt) { - carla_debug("NativePlugin::handleDispatcher(%i, %i, " P_INTPTR ", %p, %f)", opcode, index, value, ptr, opt); + carla_debug("NativePlugin::handleDispatcher(%i, %i, " P_INTPTR ", %p, %f)", + opcode, index, value, ptr, static_cast(opt)); intptr_t ret = 0; diff --git a/source/plugin/carla-vst.cpp b/source/plugin/carla-vst.cpp index fa7b74087..292962186 100644 --- a/source/plugin/carla-vst.cpp +++ b/source/plugin/carla-vst.cpp @@ -749,7 +749,8 @@ protected: intptr_t handleDispatcher(const NativeHostDispatcherOpcode opcode, const int32_t index, const intptr_t value, void* const ptr, const float opt) { - carla_debug("NativePlugin::handleDispatcher(%i, %i, " P_INTPTR ", %p, %f)", opcode, index, value, ptr, opt); + carla_debug("NativePlugin::handleDispatcher(%i, %i, " P_INTPTR ", %p, %f)", + opcode, index, value, ptr, static_cast(opt)); switch (opcode) {