* Fix issue #159

use timestamp for AudeioLevel observer
change smoothinterval default to 2 for more sensitive
This commit is contained in:
cnderrauber
2021-11-16 21:59:15 +08:00
committed by GitHub
parent 95e29d3766
commit c4c93eaad6
5 changed files with 29 additions and 27 deletions
+1 -1
View File
@@ -60,6 +60,6 @@ func TestAudioLevel(t *testing.T) {
func observeSamples(a *rtc.AudioLevel, level uint8, count int) {
for i := 0; i < count; i++ {
a.Observe(level)
a.Observe(level, 20)
}
}