| 109 | } |
| 110 | |
| 111 | void Context::setFFTHistoryDepth(int depth) { |
| 112 | if (mFFTHistoryDepth != depth) { |
| 113 | mFFTHistory.clear(); |
| 114 | mFFTHistory.reserve(depth); |
| 115 | mFFTHistoryDepth = depth; |
| 116 | mFFTHistoryIndex = 0; |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | const fft::Bins* Context::getHistoricalFFT(int framesBack) const { |
| 121 | if (framesBack < 0 || framesBack >= static_cast<int>(mFFTHistory.size())) { |
no test coverage detected