diff options
author | Mark Spencer <markster@digium.com> | 2005-01-11 18:10:30 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-11 18:10:30 +0000 |
commit | b846c71e0ae08a59768b1be169aa981be30f1600 (patch) | |
tree | 4844f6fe1156607cb0f61e6654dff4c6bef13c47 /dsp.c | |
parent | 60b57a20b7f65e74427b0b5e7e3778a47188b25c (diff) |
Fix typo in tone detect (bug #3315)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'dsp.c')
-rwxr-xr-x | dsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1196,10 +1196,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++; } } |