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

Method Processor

Server/Source/Processor.cpp:43–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41std::atomic_uint32_t Processor::loadedCount{0};
42
43Processor::Processor(ProcessorChain& chain, const String& id, double sampleRate, int blockSize, bool isClient)
44 : LogTagDelegate(chain.getLogTagSource()),
45 m_chain(chain),
46 m_id(id),
47 m_sampleRate(sampleRate),
48 m_blockSize(blockSize),
49 m_isClient(isClient),
50 m_fmt(id.startsWith("VST3") ? VST3
51 : id.startsWith("VST") ? VST
52 : AU) {
53 initAsyncFunctors();
54
55 if (auto app = getApp()) {
56 if (auto srv = app->getServer()) {
57 m_isClient =
58 srv->getSandboxMode() == Server::SANDBOX_PLUGIN && srv->getSandboxModeRuntime() == Server::SANDBOX_NONE;
59 }
60 }
61}
62
63Processor::~Processor() {
64 unload();

Callers

nothing calls this directly

Calls 4

getLogTagSourceMethod · 0.80
getSandboxModeMethod · 0.80
getSandboxModeRuntimeMethod · 0.80
getServerMethod · 0.45

Tested by

no test coverage detected