MCPcopy Create free account
hub / github.com/DISTRHO/DPF / getPluginVersion

Function getPluginVersion

distrho/src/DistrhoPluginVST3.cpp:4593–4611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4591}
4592
4593static const char* getPluginVersion()
4594{
4595 static String version;
4596
4597 if (version.isEmpty())
4598 {
4599 const uint32_t versionNum = sPlugin->getVersion();
4600
4601 char versionBuf[64];
4602 std::snprintf(versionBuf, sizeof(versionBuf)-1, "%d.%d.%d",
4603 (versionNum >> 16) & 0xff,
4604 (versionNum >> 8) & 0xff,
4605 (versionNum >> 0) & 0xff);
4606 versionBuf[sizeof(versionBuf)-1] = '\0';
4607 version = versionBuf;
4608 }
4609
4610 return version.buffer();
4611}
4612
4613// --------------------------------------------------------------------------------------------------------------------
4614// dpf_factory

Callers 2

get_class_info_2Method · 0.85
get_class_info_utf16Method · 0.85

Calls 1

getVersionMethod · 0.45

Tested by

no test coverage detected