/** Computes the RMS volume of a group of audio samples (0 to 1) */ static double audio_rmsVolume_shorts(short[] raw) { if (empty(raw)) ret 0; double sum = 0; for (int ii=0; ii