aboutsummaryrefslogtreecommitdiffstats
path: root/dsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'dsp.c')
-rwxr-xr-xdsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dsp.c b/dsp.c
index 36401aad5..6053d2c55 100755
--- a/dsp.c
+++ b/dsp.c
@@ -1308,10 +1308,10 @@ int ast_dsp_busydetect(struct ast_dsp *dsp)
}
#endif
if (avgtone > dsp->historicnoise[x]) {
- if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicsilence[x])
+ if (avgtone - (avgtone / BUSY_PERCENT) <= dsp->historicnoise[x])
hittone++;
} else {
- if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicsilence[x])
+ if (avgtone + (avgtone / BUSY_PERCENT) >= dsp->historicnoise[x])
hittone++;
}
}