MCPcopy Create free account
hub / github.com/apohl79/audiogridder / setStateInformation

Method setStateInformation

Server/Source/ProcessorClient.cpp:546–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

544}
545
546void ProcessorClient::setStateInformation(const String& settings) {
547 traceScope();
548
549 std::lock_guard<std::mutex> lock(m_cmdMtx);
550
551 Message<SetPluginSettings> msg(this);
552 PLD(msg).setNumber(0);
553 if (!msg.send(m_sockCmdOut.get())) {
554 logln("setStateInformation failed: can't send announcement message");
555 return;
556 }
557
558 Message<PluginSettings> msgSettings(this);
559 PLD(msgSettings).setString(settings);
560 if (!msgSettings.send(m_sockCmdOut.get())) {
561 logln("setStateInformation failed: can't send payload message");
562 return;
563 }
564}
565
566void ProcessorClient::setPlayHead(AudioPlayHead* p) { m_playhead = p; }
567

Callers

nothing calls this directly

Calls 4

setNumberMethod · 0.80
setStringMethod · 0.80
sendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected