/* Calculates the average value of the samples in the buffer.  */
float MIC_getMean(void)
/* Calculates the average value of the samples in the buffer.  */
float MIC_getMean(void)
{
   size_t i;
   float mean;
   mean = 0.0f;
   for( i = 0; i < sampleCount; i++ ) {
      mean += (float) sampleBuffer[i];
   }
   mean = mean / (float) sampleCount;
   return mean;
}