Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
(1/2) Fix camera video A/V desync #3
Prevent AudioCapture from sending late samples into /dev/socket/micshm, which will cause A/V desync because micshm doesn't accept timing. This is done by limiting maximum PA buffer size & flush buffer before first read.
This fixes ubports/ubuntu-touch#1116 to the point usable to most of the users (the audio is still around 300ms behind video on my FP2). With ubports/android_frameworks_av#4, the issue is completely fixed.