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

Method unsubscribe

src/audio.cpp:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void Device::unsubscribe(Port* port) {
27 std::lock_guard<std::mutex> lock(processMutex);
28 auto it = subscribed.find(port);
29 if (it != subscribed.end())
30 subscribed.erase(it);
31}
32
33void Device::processBuffer(const float* input, int inputStride, float* output, int outputStride, int frames) {
34 // Zero output since Ports might not write to all elements, or no Ports exist

Callers 1

setDeviceIdMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected