| 53 | } |
| 54 | |
| 55 | void PitchShiftEffect::ProcessAudio(double time, ChannelBuffer* buffer) |
| 56 | { |
| 57 | PROFILER(PitchShiftEffect); |
| 58 | |
| 59 | if (!mEnabled) |
| 60 | return; |
| 61 | |
| 62 | float bufferSize = buffer->BufferSize(); |
| 63 | |
| 64 | ComputeSliders(0); |
| 65 | |
| 66 | for (int ch = 0; ch < buffer->NumActiveChannels(); ++ch) |
| 67 | { |
| 68 | mPitchShifter[ch]->SetRatio(mRatio); |
| 69 | mPitchShifter[ch]->Process(buffer->GetChannel(ch), bufferSize); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | void PitchShiftEffect::DrawModule() |
| 74 | { |
nothing calls this directly
no test coverage detected