| 21 | } |
| 22 | |
| 23 | void PlaygroundProcessor::prepareProcess(StandardFFTProcessor * spectralProcessor) |
| 24 | { |
| 25 | auto processor = ((PlaygroundFFTProcessor*)spectralProcessor); |
| 26 | auto usePvoc = m_params->getUsePvoc().getValue(); |
| 27 | processor->setUsePvoc(usePvoc); |
| 28 | |
| 29 | auto doRotate = m_params->getDoWindowRotate().getValue(); |
| 30 | processor->setDoWindowRotate(doRotate); |
| 31 | |
| 32 | if(m_params->getThreaded().getValue()) { |
| 33 | if(!m_fftThread->isThreadRunning()){ |
| 34 | m_fftThread->startThread(); |
| 35 | } |
| 36 | processor->setUseThreadForLargeFft(true); |
| 37 | } |
| 38 | else { |
| 39 | if(m_fftThread->isThreadRunning()){ |
| 40 | m_fftThread->signalThreadShouldExit(); |
| 41 | } |
| 42 | processor->setUseThreadForLargeFft(false); |
| 43 | } |
| 44 | |
| 45 | if(m_params->getUseLinearHann().getValue()) { |
| 46 | processor->setWindowType(PlaygroundFFTProcessor::WindowType::HANN_LINEAR); |
| 47 | } |
| 48 | else { |
| 49 | processor->setWindowType(PlaygroundFFTProcessor::WindowType::HANN); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | void PlaygroundProcessor::switchOverlapCount() { |
| 54 | int newNumOverlaps = (int)m_params->getNumberOfOverlaps().getValue(); |
nothing calls this directly
no test coverage detected