| 49 | } |
| 50 | |
| 51 | float peakAbsStereo(const float* data, int frames) |
| 52 | { |
| 53 | float peak = 0.0f; |
| 54 | const int samples = frames * 2; |
| 55 | for (int i = 0; i < samples; ++i) { |
| 56 | peak = std::max(peak, std::fabs(data[i])); |
| 57 | } |
| 58 | return peak; |
| 59 | } |
| 60 | |
| 61 | void processBlocks(ClientGate& gate, float* buf, int frames) |
| 62 | { |
no outgoing calls
no test coverage detected