Support AudioContextOptions latencyHint as double

Desktop / Chromium - andrew.macpherson [soundtrap.com] - 17 April 2017 15:45 EDT

Follow-up to https://codereview.chromium.org/2501863003

This adds support for the latencyHint value to be passed as a double in order to request an exact latency amount.

BUG=564276 R=rtoy@chromium.org

Review-Url: https://codereview.chromium.org/2750543003 Cr-Commit-Position: refs/heads/master@{#464988}

67c41de1 Support AudioContextOptions latencyHint as double.
content/public/renderer/content_renderer_client.cc | 3 +-
content/public/renderer/content_renderer_client.h | 4 +-
.../renderer/media/renderer_webaudiodevice_impl.cc | 64 +++++----
content/renderer/renderer_blink_platform_impl.cc | 2 +-
.../layout_test_content_renderer_client.cc | 34 ++++-
.../layout_test_content_renderer_client.h | 3 +-
media/base/audio_latency.cc | 16 +++
media/base/audio_latency.h | 8 ++
.../LayoutTests/webaudio/audiocontextoptions.html | 155 +++++++++++++++------
.../Source/modules/webaudio/AudioContext.cpp | 8 +-
.../modules/webaudio/AudioContextOptions.idl | 3 +
.../Source/modules/webaudio/AudioContextTest.cpp | 43 +++++-
12 files changed, 262 insertions(+), 81 deletions(-)

Upstream: git.chromium.org


  • Share