• Max Morin's avatar
    Fix Chrome OS audio capture time stamps. · 7b7f6141
    Max Morin authored
    The current code assumes that the time stamp given by CRAS is from the
    clock that base::TimeTicks uses. It is not, leading to incorrect time
    stamps.
    
    I verified that, in a VM, the new code in apprtc reports ~the same latency
    as running "cras_test_client --capture_file /dev/null --show_latency".
    
    Bug: 903213
    Change-Id: Ib998414d4c4c8a3df7c7ef62f8386960f7439156
    Reviewed-on: https://chromium-review.googlesource.com/c/1326142Reviewed-by: default avatarOlga Sharonova <olka@chromium.org>
    Commit-Queue: Max Morin <maxmorin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#606470}
    7b7f6141
cras_input.cc 10.9 KB