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

Method getLatestModulatedFilterValues

Source/PluginProcessor.cpp:2338–2359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2336}
2337
2338bool FireAudioProcessor::getLatestModulatedFilterValues(ModulatedFilterValues& values)
2339{
2340 int numAvailable = filterFifo.getNumReady();
2341
2342 if (numAvailable > 0)
2343 {
2344 int start1, size1, start2, size2;
2345 filterFifo.prepareToRead(numAvailable, start1, size1, start2, size2);
2346
2347 if (size2 > 0)
2348 {
2349 values = filterFifoBuffer[start2 + size2 - 1];
2350 }
2351 else
2352 {
2353 values = filterFifoBuffer[start1 + size1 - 1];
2354 }
2355 filterFifo.finishedRead(numAvailable);
2356 return true;
2357 }
2358 return false;
2359}
2360
2361float FireAudioProcessor::getGlobalInputRMSLevel(int channel) const
2362{

Callers 1

timerCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected