MCPcopy Create free account
hub / github.com/LabSound/LabSound / process

Method process

src/extended/PdNode.cpp:46–55  ·  view source on GitHub ↗

Processes the source to destination bus. The number of channels must match in source and destination.

Source from the content-addressed store, hash-verified

44
45 // Processes the source to destination bus. The number of channels must match in source and destination.
46 virtual void process(const lab::AudioBus * source, lab::AudioBus * destination, size_t framesToProcess)
47 {
48 if (!numChannels)
49 return;
50
51 int ticks = framesToProcess >> blockSizeAsLog; // this is a faster way of computing (inNumberFrames / blockSize)
52 const float * inData = source->channel(0)->data();
53 float * outData = destination->channel(0)->mutableData();
54 pd.processFloat(ticks, inData, outData);
55 }
56
57 // Resets filter state
58 virtual void reset() {}

Callers

nothing calls this directly

Calls 3

channelMethod · 0.80
mutableDataMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected