MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / callAudio

Method callAudio

Source/Lua/Methods/CtrlrLuaMethodManagerCalls.cpp:869–889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869const bool CtrlrLuaMethodManager::callAudio(CtrlrLuaMethod *o, MidiBuffer &param1, const AudioPlayHead::CurrentPositionInfo &param2)
870{
871 const ScopedLock sl(methodManagerCriticalSection);
872
873 LUA_DEBUG
874
875 if (isLuaDisabled())
876 return (true);
877
878 try
879 {
880 if (o->isValid())
881 {
882 luabind::call_function<void>(o->getObject().getObject(), param1, param2);
883 }
884 }
885
886 CATCH_METHOD_EXCEPTION
887
888 return (true);
889}
890
891const bool CtrlrLuaMethodManager::call(CtrlrLuaMethod *o, const String &param1, const String &param2, CtrlrLuaObjectWrapper const &param3)
892{

Callers 1

processLuaMethod · 0.80

Calls 2

isValidMethod · 0.45
getObjectMethod · 0.45

Tested by

no test coverage detected