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

Method Process

Source/StutterControl.cpp:75–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void StutterControl::Process(double time)
76{
77 PROFILER(StutterControl);
78
79 if (!mEnabled)
80 return;
81
82 ComputeSliders(0);
83 SyncBuffers();
84
85 IAudioReceiver* target = GetTarget();
86
87 if (target)
88 {
89 mStutterProcessor.ProcessAudio(time, GetBuffer());
90
91 ChannelBuffer* out = target->GetBuffer();
92 for (int ch = 0; ch < GetBuffer()->NumActiveChannels(); ++ch)
93 {
94 Add(out->GetChannel(ch), GetBuffer()->GetChannel(ch), out->BufferSize());
95 GetVizBuffer()->WriteChunk(GetBuffer()->GetChannel(ch), GetBuffer()->BufferSize(), ch);
96 }
97 }
98
99 GetBuffer()->Reset();
100}
101
102void StutterControl::DrawModule()
103{

Callers

nothing calls this directly

Calls 8

AddFunction · 0.85
GetBufferMethod · 0.80
NumActiveChannelsMethod · 0.80
GetChannelMethod · 0.80
BufferSizeMethod · 0.80
WriteChunkMethod · 0.80
ProcessAudioMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected