-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Bug Report
In AudioLevelObserver.cpp, the interval was between 250ms and 5000ms, as follow.

and the DBovs.count should >= 10.

ptime is the audio length of an rtp packet. Therefore, ptime * DBovs.count must be less than interval in the time of interval.
The default ptime is 20, so 20 * 10 < 250ms, it is working properly. But users may set different ptime, maxptime and minptime depending on the actual situation, so if they are larger, it may cause audioLevel not to work. For example if I set the ptime to 30ms, then audioLevel may not receive 10 packets in 250 ms. Even if I speak, audioLevel will think I am not speaking.
Issue description
Therefore, I suggest to make maxInterval, minInterval, maxCount optional configuration items.
julyCodeGo