MCPcopy Create free account
hub / github.com/andrewreeman/SpectralSuite / prepareProcess

Method prepareProcess

Playground/PlaygroundProcessorInteractor.cpp:23–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void 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
53void PlaygroundProcessor::switchOverlapCount() {
54 int newNumOverlaps = (int)m_params->getNumberOfOverlaps().getValue();

Callers

nothing calls this directly

Calls 8

getUsePvocMethod · 0.80
getDoWindowRotateMethod · 0.80
setDoWindowRotateMethod · 0.80
getThreadedMethod · 0.80
getUseLinearHannMethod · 0.80
setUsePvocMethod · 0.45
setWindowTypeMethod · 0.45

Tested by

no test coverage detected