Skip to content

change ptime may cause AudioLevel don't work Β #1022

@buptlsp

Description

@buptlsp

Bug Report

In AudioLevelObserver.cpp, the interval was between 250ms and 5000ms, as follow.
image

and the DBovs.count should >= 10.
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions