/** Computes the RMS volume of a group of signal sizes ranging from -1 to 1. */ static double audio_rmsVolume(float[] raw) { if (empty(raw)) ret 0; double sum = 0; for (int ii=0; ii