| 10 | } |
| 11 | |
| 12 | void PhaseLockInteractor::process(SpectralAudioPlugin *plugin, std::vector<std::vector<float>> *input, std::vector<std::vector<float>> *output) |
| 13 | { |
| 14 | if (m_params->willContinuePlayingWhenSilentInput()) |
| 15 | { |
| 16 | const auto* playHead = plugin->getPlayHead(); |
| 17 | if(playHead != nullptr) |
| 18 | { |
| 19 | auto position = playHead->getPosition(); |
| 20 | if(position.hasValue()) |
| 21 | { |
| 22 | if(!position->getIsPlaying()) |
| 23 | { |
| 24 | return; |
| 25 | } |
| 26 | } |
| 27 | } |
| 28 | } |
| 29 | this->SpectralAudioProcessorInteractor::process(input, output); |
| 30 | } |
| 31 | |
| 32 | |
| 33 | void PhaseLockInteractor::prepareProcess(StandardFFTProcessor * spectralProcessor) |
nothing calls this directly
no test coverage detected