MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / getLatestDistortionGraphValues

Method getLatestDistortionGraphValues

Source/PluginProcessor.cpp:2564–2581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2562}
2563
2564bool FireAudioProcessor::getLatestDistortionGraphValues(DistortionGraphValues& values)
2565{
2566 int numAvailable = graphFifo.getNumReady();
2567 if (numAvailable > 0)
2568 {
2569 int start1, size1, start2, size2;
2570 graphFifo.prepareToRead(numAvailable, start1, size1, start2, size2);
2571
2572 if (size2 > 0)
2573 values = graphFifoBuffer[start2 + size2 - 1];
2574 else
2575 values = graphFifoBuffer[start1 + size1 - 1];
2576
2577 graphFifo.finishedRead(numAvailable);
2578 return true;
2579 }
2580 return false;
2581}
2582
2583void FireAudioProcessor::setUiFocusBand(int bandIndex)
2584{

Callers 1

timerCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected