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

Method process

src/core/AnalyserNode.cpp:169–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void AnalyserNode::process(ContextRenderLock & r, int bufferSize)
170{
171 AudioBus * outputBus = output(0)->bus(r);
172 AudioBus * inputBus = input(0)->bus(r);
173
174 if (!isInitialized() || !input(0)->isConnected() || !inputBus)
175 {
176 if (outputBus)
177 outputBus->zero();
178 return;
179 }
180
181 // Give the analyser all the audio which is passing through this AudioNode.
182 _detail->m_analyser->writeInput(r, inputBus, bufferSize);
183
184 if (inputBus != outputBus)
185 {
186 outputBus->copyFrom(*inputBus);
187 }
188}
189
190void AnalyserNode::reset(ContextRenderLock &)
191{

Callers

nothing calls this directly

Calls 5

writeInputMethod · 0.80
busMethod · 0.45
isConnectedMethod · 0.45
zeroMethod · 0.45
copyFromMethod · 0.45

Tested by

no test coverage detected