double audio_level(int16_t *samples, int length); void audio_goertzel(int16_t *samples, int length, int offset, int *coeff, double *result, int k);