| 60 | } |
| 61 | |
| 62 | void RealtimeAnalyser::setFftSize(int fftSize) |
| 63 | { |
| 64 | m_writeIndex = 0; |
| 65 | |
| 66 | int size = max(min(RoundNextPow2(fftSize), MaxFFTSize), MinFFTSize); |
| 67 | m_fftSize = size; |
| 68 | |
| 69 | m_analysisFrame = std::unique_ptr<FFTFrame>(new FFTFrame(size)); |
| 70 | |
| 71 | m_inputBuffer.zero(); |
| 72 | m_magnitudeBuffer.allocate(size / 2); |
| 73 | } |
| 74 | |
| 75 | void RealtimeAnalyser::writeInput(ContextRenderLock & r, AudioBus * bus, int framesToProcess) |
| 76 | { |
nothing calls this directly
no test coverage detected