MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / sampleRateChanged

Function sampleRateChanged

src/CardinalPlugin.cpp:1294–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1292 }
1293
1294 void sampleRateChanged(const double newSampleRate) override
1295 {
1296 rack::contextSet(context);
1297 rack::settings::sampleRate = newSampleRate;
1298 context->sampleRate = newSampleRate;
1299 context->engine->setSampleRate(newSampleRate);
1300 }
1301
1302 #ifdef DISTRHO_PLUGIN_EXTRA_IO
1303 void ioChanged(const uint16_t numInputs, const uint16_t numOutputs) override

Callers

nothing calls this directly

Calls 2

setSampleRateMethod · 0.80
contextSetFunction · 0.50

Tested by

no test coverage detected