The functions WaitForNoise() and WaitForSilence() use the time()
functions to calculate elapsed time, which causes the timer to fire on
a whole second boundary, and the actual function execution time to fire
the timer may be 1 second less than expected. This fix replaces time()
with ast_tvnow().
Fixes: #1401
(cherry picked from commit a8afc93ebe)
releases/certified-22.8
Igor Goncharovsky1 year agocommitted byGeorge Joseph