| 73 | } |
| 74 | |
| 75 | void 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 | |
| 102 | void StutterControl::DrawModule() |
| 103 | { |
nothing calls this directly
no test coverage detected