| 41 | std::atomic_uint32_t Processor::loadedCount{0}; |
| 42 | |
| 43 | Processor::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 | |
| 63 | Processor::~Processor() { |
| 64 | unload(); |
nothing calls this directly
no test coverage detected