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

Method bufferLengthForDelay

src/internal/src/DelayDSPKernel.cpp:61–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61size_t DelayDSPKernel::bufferLengthForDelay(double maxDelayTime, double sampleRate) const
62{
63 // Compute the length of the buffer needed to handle a max delay of |maxDelayTime|. One is
64 // added to handle the case where the actual delay equals the maximum delay.
65 return 1 + AudioUtilities::timeToSampleFrame(maxDelayTime, sampleRate);
66}
67
68void DelayDSPKernel::process(ContextRenderLock & r, const float * source, float * destination, int framesToProcess)
69{

Callers

nothing calls this directly

Calls 1

timeToSampleFrameFunction · 0.85

Tested by

no test coverage detected