Process a buffer block-by-block, so we exercise the same block-scheduling that the AudioEngine will use.
| 68 | // Process a buffer block-by-block, so we exercise the same block-scheduling |
| 69 | // that the AudioEngine will use. |
| 70 | void processBlocks(ClientEq& eq, float* buf, int frames) |
| 71 | { |
| 72 | int remaining = frames; |
| 73 | float* p = buf; |
| 74 | while (remaining > 0) { |
| 75 | const int n = std::min(kBlockSize, remaining); |
| 76 | eq.process(p, n, 2); |
| 77 | p += n * 2; |
| 78 | remaining -= n; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | bool anyNaNorInf(const float* data, int frames) |
| 83 | { |
no test coverage detected