Reopen call output on confirmed routes and recompute AEC from physical latency
This commit is contained in:
1 parent
a165372bbe
commit
8add40ec00
3 files changed
+123
-69
No files matched your search
@@ -4,6 +4,13 @@ import org.junit.Assert.*
|
||||
import org.junit.Test
|
||||
|
||||
class CallAudioTimingTest {
|
||||
@Test fun capturePendingIncludesAgeOfHardwareTimestamp() {
|
||||
assertEquals(960L, callCapturePendingFrames(4800, 4320, 970_000_000, 1_000_000_000))
|
||||
assertEquals(0L, callCapturePendingFrames(4800, 4800, 1_000_000_000, 1_000_000_000))
|
||||
assertNull(callCapturePendingFrames(4800, 4320, 100_000_000, 1_000_000_000))
|
||||
assertNull(callCapturePendingFrames(4800, -1, 970_000_000, 1_000_000_000))
|
||||
}
|
||||
|
||||
@Test fun playbackUsesPresentationTimeAndMonotonicWrittenAnchor() {
|
||||
val c = CallPlaybackClock()
|
||||
val fallback = c.update(9600, 8640, 1_000_000, 1, 1, -1, -1)!!
|
||||
|
||||
Reference in new issue
Block a user