MCPcopy Create free account
hub / github.com/DISTRHO/DPF / sendStateSetToUI

Function sendStateSetToUI

distrho/src/DistrhoPluginVST3.cpp:3014–3030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3012 }
3013
3014 void sendStateSetToUI(const char* const key, const char* const value) const
3015 {
3016 v3_message** const message = createMessage("state-set");
3017 DISTRHO_SAFE_ASSERT_RETURN(message != nullptr,);
3018
3019 v3_attribute_list** const attrlist = v3_cpp_obj(message)->get_attributes(message);
3020 DISTRHO_SAFE_ASSERT_RETURN(attrlist != nullptr,);
3021
3022 v3_cpp_obj(attrlist)->set_int(attrlist, "__dpf_msg_target__", 2);
3023 v3_cpp_obj(attrlist)->set_int(attrlist, "key:length", std::strlen(key));
3024 v3_cpp_obj(attrlist)->set_int(attrlist, "value:length", std::strlen(value));
3025 v3_cpp_obj(attrlist)->set_string(attrlist, "key", ScopedUTF16String(key));
3026 v3_cpp_obj(attrlist)->set_string(attrlist, "value", ScopedUTF16String(value));
3027 v3_cpp_obj(fConnectionFromCtrlToView)->notify(fConnectionFromCtrlToView, message);
3028
3029 v3_cpp_obj_unref(message);
3030 }
3031
3032 void sendReadyToUI() const
3033 {

Callers 2

setStateFunction · 0.85
ctrl2view_notifyFunction · 0.85

Calls 5

ScopedUTF16StringClass · 0.85
v3_cpp_obj_unrefFunction · 0.85
createMessageFunction · 0.70
v3_cpp_objFunction · 0.50
notifyMethod · 0.45

Tested by

no test coverage detected