[Reland] Use resampler for playback speeds close to 1.0
Commit 'ab98b39d' broke the MSAN bots and was reverted. This CL relands those changes, while fixing the UTs. Original description: The WSOLA algorithm introduces noticeable audio artifacts when doing small adjustments to playback rate (e.g. 1.03 playback speed). The distortions can be described as warbling or transient stuttering. This CL introduces fixes this issue by using resampling instead, for speeds close to 1.00. The resampled audio doesn't have any distortions, but its pitch is shifted proportionally to the playback changes. The maximal slowdown/speed up we use resampling for is 5-6%, which corresponds to shifting by 1 note tone. Beyond that, the WSOLA artifacts become tolerable, and the pitch shifting doesn't. Bug: 920019, 1018617 Change-Id: Ide606af05253f02576f548f20dfc9007040cc106 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1884572 Auto-Submit: Thomas Guilbert <tguilbert@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Cr-Commit-Position: refs/heads/master@{#710106}
Showing
Please register or sign in to comment