HomeSort by relevance Sort by last modified time
    Searched defs:rms (Results 1 - 6 of 6) sorted by null

  /cts/suite/audio_quality/lib/src/
BuiltinProcessing.cpp 55 int64_t rms = 0; local
62 rms = (int64_t)sqrt(energy/samples);
65 if (rms < passMin) {
66 MSG("Volume %lld low compared to min %lld max %lld", rms, passMin, passMax);
68 } else if (rms <= passMax) {
69 MSG("Volume %lld OK compared to min %lld max %lld", rms, passMin, passMax);
76 LOGW("Volume %lld high compared to min %lld max %lld", rms, passMin, passMax);
80 rmsVal->setInt64(rms);
  /external/webrtc/src/modules/audio_processing/
level_estimator_impl.cc 52 int RMS() {
59 double rms = sum_square_ / (sample_count_ * kMaxSquaredLevel); local
61 rms = 10 * log10(rms);
62 if (rms > 0)
63 rms = 0;
64 else if (rms < -kMinLevel)
65 rms = -kMinLevel;
67 rms = -rms;
    [all...]
  /external/chromium_org/content/browser/speech/endpointer/
energy_endpointer.cc 17 // Returns the RMS (quadratic mean) of the input signal.
18 float RMS(const int16* samples, int num_samples) {
237 float rms = RMS(samples, num_samples); local
250 decision = (rms > decision_threshold_);
304 // threshold to be about 6dB above the average RMS.
306 decision_threshold_ = (0.98f * decision_threshold_) + (0.02f * 2 * rms);
310 // be about 10dB below the average RMS. If the noise level is high,
315 if (rms_adapt_ > rms) {
316 rms_adapt_ = (0.99f * rms_adapt_) + (0.01f * rms);
    [all...]
  /frameworks/av/media/libeffects/visualizer/
EffectVisualizer.cpp 323 // find the peak and RMS squared for the new buffer
614 // only use actual measurements, otherwise the first RMS measure happening before
627 float rms = nbValidMeasurements == 0 ? 0.0f : sqrtf(sumRmsSquared / nbValidMeasurements); local
630 if (rms < 0.000016f) {
633 pIntReplyData[MEASUREMENT_IDX_RMS] = (int32_t) (2000 * log10(rms / 32767.0f));
640 ALOGV("VISUALIZER_CMD_MEASURE peak=%d (%dmB), rms=%.1f (%dmB)",
642 rms, pIntReplyData[MEASUREMENT_IDX_RMS]);
  /external/chromium_org/content/browser/speech/
speech_recognizer_impl.cc 72 // RMS dB value of a maximum (unclipped) sine wave for int16 samples.
74 // This value corresponds to RMS dB for int16 with 6 most-significant-bits = 0.
473 float rms = 0.0f; local
478 endpointer_.ProcessAudio(raw_audio, &rms);
481 DCHECK(route_to_endpointer); // Depends on endpointer due to |rms|.
482 UpdateSignalAndNoiseLevels(rms, clip_detected);
783 void SpeechRecognizerImpl::UpdateSignalAndNoiseLevels(const float& rms,
789 float level = (rms - kAudioMeterMinDb) /
  /hardware/qcom/audio/visualizer/
offload_visualizer.c 683 // find the peak and RMS squared for the new buffer
843 /* only use actual measurements, otherwise the first RMS measure happening before
857 float rms = nb_valid_meas == 0 ? 0.0f : sqrtf(sum_rms_squared / nb_valid_meas); local
860 if (rms < 0.000016f) {
863 p_int_reply_data[MEASUREMENT_IDX_RMS] = (int32_t) (2000 * log10(rms / 32767.0f));
870 ALOGV("VISUALIZER_CMD_MEASURE peak=%d (%dmB), rms=%.1f (%dmB)",
872 rms, p_int_reply_data[MEASUREMENT_IDX_RMS]);
    [all...]

Completed in 91 milliseconds