MCPcopy Create free account
hub / github.com/christophhart/HISE / sendUpdateMessage

Method sendUpdateMessage

hi_scripting/scripting/api/ScriptingApiObjects.cpp:8654–8672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8652}
8653
8654void ScriptingObjects::ScriptedMacroHandler::sendUpdateMessage(NotificationType n)
8655{
8656 if(updateCallback && n != dontSendNotification)
8657 {
8658 auto obj = getMacroDataObject();
8659
8660 if(n == sendNotificationSync)
8661 {
8662 auto r = updateCallback.callSync(&obj, 1);
8663
8664 if (!r.wasOk())
8665 reportScriptError(r.getErrorMessage());
8666 }
8667 else
8668 {
8669 updateCallback.call1(obj);
8670 }
8671 }
8672}
8673
8674void ScriptingObjects::ScriptedMacroHandler::setFromCallbackArg(const var& obj)
8675{

Callers 2

~ScopedUpdateDelayerMethod · 0.45

Calls 4

callSyncMethod · 0.45
wasOkMethod · 0.45
getErrorMessageMethod · 0.45
call1Method · 0.45

Tested by

no test coverage detected