Displaying 1 result from an estimated 1 matches for "compute_frame_energy".
2017 Jul 06
1
Suggested patch, opus_encoder.c, decide_dtx_mode()
...this frame */
int arch
)
{
int is_noise;
opus_val32 noise_energy;
int is_sufficiently_quiet;
if (!is_silence)
{
is_noise = activity_probability < DTX_ACTIVITY_THRESHOLD;
if (is_noise)
{
noise_energy = compute_frame_energy(pcm, frame_size, channels,
arch);
is_sufficiently_quiet = peak_signal_energy >= (PSEUDO_SNR_THRESHOLD
* noise_energy);
}
}
if (is_silence || (is_noise && is_sufficiently_quiet))
{
/* The number of consecutive DTX frames should be within the allowed
bounds *...