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

Method ProcessAudio

Source/Muter.cpp:47–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void Muter::ProcessAudio(double time, ChannelBuffer* buffer)
48{
49 PROFILER(Muter);
50
51 float bufferSize = buffer->BufferSize();
52
53 for (int i = 0; i < bufferSize; ++i)
54 {
55 for (int ch = 0; ch < buffer->NumActiveChannels(); ++ch)
56 buffer->GetChannel(ch)[i] *= mRamp.Value(time);
57 time += gInvSampleRateMs;
58 }
59}
60
61void Muter::DrawModule()
62{

Callers 10

ProcessMethod · 0.45
GraphFilterMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
DoWriteMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45
ProcessMethod · 0.45

Calls 4

BufferSizeMethod · 0.80
NumActiveChannelsMethod · 0.80
GetChannelMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected