PR comments fixes

This commit is contained in:
Evgenii Buchnev 2024-04-08 12:04:36 +10:00
parent b425ea661d
commit f96c4f5a95
1 changed files with 1 additions and 0 deletions

View File

@ -1993,6 +1993,7 @@ static void avmd_report_detection(avmd_session_t *s, enum avmd_detection_mode mo
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(s->session), SWITCH_LOG_INFO, "<<< AVMD - Beep Detected [%u][%u][%u][%u]: f = [%f] variance = [%f], detection time [%" PRId64 "] [us] >>>\n", switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(s->session), SWITCH_LOG_INFO, "<<< AVMD - Beep Detected [%u][%u][%u][%u]: f = [%f] variance = [%f], detection time [%" PRId64 "] [us] >>>\n",
mode, b->resolution, b->offset, d->idx, AVMD_TO_HZ(s->rate, f_sma), v_fir, detection_time); mode, b->resolution, b->offset, d->idx, AVMD_TO_HZ(s->rate, f_sma), v_fir, detection_time);
} }
switch_channel_set_variable_printf(channel, "avmd_report_frequency", "%f", AVMD_TO_HZ(s->rate, f_sma)); switch_channel_set_variable_printf(channel, "avmd_report_frequency", "%f", AVMD_TO_HZ(s->rate, f_sma));
switch_channel_set_variable_printf(channel, "avmd_report_frequency_variance", "%f", v_fir); switch_channel_set_variable_printf(channel, "avmd_report_frequency_variance", "%f", v_fir);
break; break;