MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / GetSample

Method GetSample

Source/RollingBuffer.cpp:39–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39float RollingBuffer::GetSample(int samplesAgo, int channel)
40{
41 assert(samplesAgo >= 0);
42 assert(samplesAgo < Size());
43 return mBuffer.GetChannel(channel)[(Size() + mOffsetToNow[channel] - samplesAgo) % Size()];
44}
45
46void RollingBuffer::ReadChunk(float* dst, int size, int samplesAgo, int channel)
47{

Callers 15

ProcessMethod · 0.45
ProcessMethod · 0.45
DoCommitMethod · 0.45
ProcessAudioMethod · 0.45
ProcessMethod · 0.45
ProcessAudioMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
GetValueMethod · 0.45
DrawMethod · 0.45
SaveOutputMethod · 0.45
ProcessMethod · 0.45

Calls 1

GetChannelMethod · 0.80

Tested by

no test coverage detected