| 59 | } |
| 60 | |
| 61 | void processBlocks(ClientGate& gate, float* buf, int frames) |
| 62 | { |
| 63 | int remaining = frames; |
| 64 | float* p = buf; |
| 65 | while (remaining > 0) { |
| 66 | const int n = std::min(kBlockSize, remaining); |
| 67 | gate.process(p, n, 2); |
| 68 | p += n * 2; |
| 69 | remaining -= n; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | bool anyNaNorInf(const float* data, int frames) |
| 74 | { |
no test coverage detected