| 43 | } |
| 44 | |
| 45 | float peakAbsStereo(const float* data, int frames) |
| 46 | { |
| 47 | float peak = 0.0f; |
| 48 | const int samples = frames * 2; |
| 49 | for (int i = 0; i < samples; ++i) { |
| 50 | peak = std::max(peak, std::fabs(data[i])); |
| 51 | } |
| 52 | return peak; |
| 53 | } |
| 54 | |
| 55 | void processBlocks(ClientDeEss& d, float* buf, int frames) |
| 56 | { |
no outgoing calls
no test coverage detected