| 54 | } |
| 55 | |
| 56 | float peakAbsStereo(const float* data, int frames) |
| 57 | { |
| 58 | float peak = 0.0f; |
| 59 | const int samples = frames * 2; |
| 60 | for (int i = 0; i < samples; ++i) { |
| 61 | peak = std::max(peak, std::fabs(data[i])); |
| 62 | } |
| 63 | return peak; |
| 64 | } |
| 65 | |
| 66 | void processBlocks(ClientComp& comp, float* buf, int frames) |
| 67 | { |
no outgoing calls
no test coverage detected