MCPcopy Create free account
hub / github.com/VCVRack/Rack / getSampleRate

Method getSampleRate

src/audio.cpp:238–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238float Port::getSampleRate() {
239 if (!device)
240 return 0;
241 try {
242 return device->getSampleRate();
243 }
244 catch (Exception& e) {
245 WARN("Audio port could not get device sample rate: %s", e.what());
246 return 0;
247 }
248}
249
250void Port::setSampleRate(float sampleRate) {
251 if (!device)

Callers 1

onMessageMethod · 0.45

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected