Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/rnnoise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/denoise.c')
-rw-r--r--src/denoise.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/denoise.c b/src/denoise.c
index a2621ca..8b6a37a 100644
--- a/src/denoise.c
+++ b/src/denoise.c
@@ -562,12 +562,12 @@ int main(int argc, char **argv) {
float vad=0;
float vad_prob;
float E=0;
- if (++gain_change_count > 101*300) {
+ if (++gain_change_count > 2821) {
speech_gain = pow(10., (-40+(rand()%60))/20.);
noise_gain = pow(10., (-30+(rand()%50))/20.);
if (rand()%10==0) noise_gain = 0;
noise_gain *= speech_gain;
- if (rand()%4==0) speech_gain = 0;
+ if (rand()%10==0) speech_gain = 0;
gain_change_count = 0;
rand_resp(a_noise, b_noise);
rand_resp(a_sig, b_sig);