| 233 | } |
| 234 | |
| 235 | std::vector<float> processWithBlockSize(const std::vector<float>& input, |
| 236 | int blockSamples) |
| 237 | { |
| 238 | SpectralNR nr; |
| 239 | nr.setGainMethod(2); |
| 240 | |
| 241 | std::vector<float> output(input.size()); |
| 242 | int offset = 0; |
| 243 | while (offset < static_cast<int>(input.size())) { |
| 244 | const int count = std::min(blockSamples, |
| 245 | static_cast<int>(input.size()) - offset); |
| 246 | nr.process(input.data() + offset, output.data() + offset, count); |
| 247 | offset += count; |
| 248 | } |
| 249 | return output; |
| 250 | } |
| 251 | |
| 252 | void test_block_size_invariance() |
| 253 | { |
no test coverage detected