Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)

Created:
4 years, 1 month ago by Andrew MacPherson
Modified:
3 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, einbinder+watch-test-runner_chromium.org, feature-media-reviews_chromium.org, haraken, hongchan, jam, jochen+watch_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, Peter Beverloo, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support for AudioContextOptions latencyHint. This adds an optional AudioContextOptions argument to AudioContext creation with a single 'latencyHint' member taking values of either 'interactive', 'balanced, or 'playback'. Support for passing a double for an exact latency amount will be added in a subsequent CL. Intent: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/t9SapYQiUtI/discussion Earlier thread: https://groups.google.com/a/chromium.org/d/topic/blink-dev/FyxYC3TE8ck/discussion Chrome feature dashboard: https://www.chromestatus.com/features/5678699475107840 BUG=564276 R=rtoy@chromium.org Review-Url: https://codereview.chromium.org/2501863003 Cr-Commit-Position: refs/heads/master@{#449927} Committed: https://chromium.googlesource.com/chromium/src/+/4f85155e4b7ae25e1dfb21cf686890fb8634eb6f

Patch Set 1 #

Total comments: 26

Patch Set 2 : latencyHint updates based on reviewer comments. #

Patch Set 3 : Add baseLatency and fix use of hardwareSampleRate. #

Total comments: 41

Patch Set 4 : More fixes based on reviewer comments. #

Total comments: 2

Patch Set 5 : Updates based on reviewer comments. #

Total comments: 45

Patch Set 6 : Updates based on reviewer comments. #

Patch Set 7 : Cache closed AudioContext sampleRate. #

Patch Set 8 : Adding additional tests. #

Total comments: 23

Patch Set 9 : Update RendererWebAudioDeviceImpl unit tests. #

Total comments: 4

Patch Set 10 : Fixes to RendererWebAudioDeviceImpl unit tests. #

Patch Set 11 : Check all LatencyHints WebAudioDeviceImpl test. #

Total comments: 15

Patch Set 12 : Updates to Web Audio code. #

Total comments: 9

Patch Set 13 : Update WebAudioLatencyHint and remove IDL typedef. #

Patch Set 14 : Rebase and fix conflicts #

Patch Set 15 : Rebase and fix tests. #

Patch Set 16 : Rebasing #

Total comments: 6

Patch Set 17 : Fixes based on reviewer comments. #

Patch Set 18 : Update formatting from presubmit check. #

Patch Set 19 : Fix trybot failures. #

Patch Set 20 : Disable latency value comparisons in Android test. #

Patch Set 21 : Clean up WebAudioDeviceImpl unit test. #

Patch Set 22 : Disable WebAudioDeviceImpl content test on Android. #

Patch Set 23 : Fix WebAudioDeviceImpl unit test on Android. #

Total comments: 4

Patch Set 24 : Fixes to WebAudioDeviceImpl unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+886 lines, -229 lines) Patch
M components/test_runner/mock_web_audio_device.h View 1 chunk +3 lines, -1 line 0 comments Download
M components/test_runner/mock_web_audio_device.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M components/test_runner/web_test_interfaces.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/test_runner/web_test_interfaces.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 3 chunks +50 lines, -8 lines 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +131 lines, -28 lines 0 comments Download
A content/renderer/media/renderer_webaudiodevice_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +195 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 5 chunks +10 lines, -15 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -4 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/virtual/stable/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-close.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/AudioNode/audionode.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -6 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +70 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/resources/context-properties.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/generated.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +22 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContext.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -1 line 0 comments Download
A third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/webaudio/AudioContextTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +104 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +13 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +5 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +29 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +25 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/DynamicsCompressorNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaStreamAudioSourceNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PannerNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/StereoPannerNode.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioDestination.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 5 chunks +11 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioDestination.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 18 19 20 6 chunks +25 lines, -47 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/public/platform/WebAudioDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebAudioLatencyHint.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 111 (39 generated)
Raymond Toy
Just some initial comments. https://codereview.chromium.org/2501863003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp (right): https://codereview.chromium.org/2501863003/diff/1/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp#newcode86 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp:86: const WebAudioLatencyHint& latencyHint, Since OfflineAudioContext ...
4 years, 1 month ago (2016-11-15 18:16:17 UTC) #1
o1ka
Some comments on WebAudioDeviceImpl https://codereview.chromium.org/2501863003/diff/1/content/renderer/media/renderer_webaudiodevice_impl.cc File content/renderer/media/renderer_webaudiodevice_impl.cc (right): https://codereview.chromium.org/2501863003/diff/1/content/renderer/media/renderer_webaudiodevice_impl.cc#newcode35 content/renderer/media/renderer_webaudiodevice_impl.cc:35: : sink_params_(params), There is no ...
4 years, 1 month ago (2016-11-15 22:44:28 UTC) #3
hongchan
Some design questions: - Who gets to decide and keep the sample rate? - Is ...
4 years, 1 month ago (2016-11-15 23:46:01 UTC) #5
Raymond Toy
https://codereview.chromium.org/2501863003/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2501863003/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode96 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:96: hardwareBufferSizeHistogram.sample(m_callbackBufferSize); On 2016/11/15 23:46:01, hongchan wrote: > On 2016/11/15 ...
4 years, 1 month ago (2016-11-15 23:50:38 UTC) #6
Andrew MacPherson
Responses to earlier comments. I will let someone else answer the design questions from hongchan@ ...
4 years, 1 month ago (2016-11-16 10:58:30 UTC) #7
o1ka
https://codereview.chromium.org/2501863003/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2501863003/diff/1/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode88 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:88: m_callbackBufferSize = m_audioDevice->framesPerBuffer(); On 2016/11/15 23:46:01, hongchan wrote: > ...
4 years, 1 month ago (2016-11-17 17:37:25 UTC) #8
Andrew MacPherson
I just pushed some changes in response to reviewer comments. A few outstanding questions/comments: rtoy@: ...
4 years ago (2016-11-28 16:15:13 UTC) #9
Raymond Toy
On 2016/11/28 16:15:13, Andrew MacPherson wrote: > I just pushed some changes in response to ...
4 years ago (2016-11-28 18:41:51 UTC) #10
o1ka
On 2016/11/28 16:15:13, Andrew MacPherson wrote: > I just pushed some changes in response to ...
4 years ago (2016-11-29 13:48:30 UTC) #11
o1ka
> olka@: The refactoring to the 'content' side should be done now so let me ...
4 years ago (2016-11-30 11:46:27 UTC) #12
Raymond Toy
https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode96 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:96: hardwareBufferSizeHistogram.sample(m_callbackBufferSize); On 2016/11/30 11:46:26, o1ka wrote: > rtoy@/hongchan@ what ...
4 years ago (2016-11-30 20:37:29 UTC) #13
Raymond Toy
https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl File third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl (right): https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl#newcode7 third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl:7: AudioContextLatencyCategory latencyHint = "interactive"; Although you're not implementing the ...
4 years ago (2016-11-30 21:50:27 UTC) #14
Andrew MacPherson
Thanks again olka@ and rtoy@! > Commented on "content" part. > Haven't found the DCHECK ...
4 years ago (2016-12-01 12:11:56 UTC) #15
Raymond Toy
https://codereview.chromium.org/2501863003/diff/40001/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/2501863003/diff/40001/content/renderer/renderer_blink_platform_impl.cc#newcode671 content/renderer/renderer_blink_platform_impl.cc:671: GetAudioHardwareParams().sample_rate(), On 2016/12/01 12:11:56, Andrew MacPherson wrote: > On ...
4 years ago (2016-12-01 16:16:27 UTC) #16
Raymond Toy
https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h (right): https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h#newcode128 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h:128: return m_destinationNode On 2016/12/01 12:11:56, Andrew MacPherson wrote: > ...
4 years ago (2016-12-01 16:26:51 UTC) #17
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/40001/content/renderer/renderer_blink_platform_impl.cc File content/renderer/renderer_blink_platform_impl.cc (right): https://codereview.chromium.org/2501863003/diff/40001/content/renderer/renderer_blink_platform_impl.cc#newcode671 content/renderer/renderer_blink_platform_impl.cc:671: GetAudioHardwareParams().sample_rate(), On 2016/12/01 16:16:27, Raymond Toy wrote: > On ...
4 years ago (2016-12-02 09:42:55 UTC) #18
o1ka
Looks good. I'm a bit worried by all the potential "division by 0" cases. https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.cc ...
4 years ago (2016-12-02 12:02:13 UTC) #19
Raymond Toy
https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h File third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h (right): https://codereview.chromium.org/2501863003/diff/40001/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h#newcode128 third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h:128: return m_destinationNode On 2016/12/02 09:42:55, Andrew MacPherson wrote: > ...
4 years ago (2016-12-02 16:57:45 UTC) #20
hongchan
Sorry for being on and off - and thanks so much for your work here! ...
4 years ago (2016-12-02 17:40:12 UTC) #21
Andrew MacPherson
Thanks again for the feedback everyone! https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.cc File content/renderer/media/renderer_webaudiodevice_impl.cc (right): https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.cc#newcode75 content/renderer/media/renderer_webaudiodevice_impl.cc:75: AudioDeviceFactory::GetOutputDeviceInfo(FrameIdFromCurrentContext(), On 2016/12/02 ...
4 years ago (2016-12-05 14:12:53 UTC) #22
Raymond Toy
https://codereview.chromium.org/2501863003/diff/80001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/2501863003/diff/80001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp#newcode246 third_party/WebKit/Source/modules/webaudio/AudioContext.cpp:246: return framesPerBuffer() * 2 / static_cast<double>(sampleRate()); On 2016/12/05 at ...
4 years ago (2016-12-05 17:36:43 UTC) #23
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.h File content/renderer/media/renderer_webaudiodevice_impl.h (right): https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.h#newcode29 content/renderer/media/renderer_webaudiodevice_impl.h:29: RendererWebAudioDeviceImpl(media::ChannelLayout layout, On 2016/12/05 14:12:52, Andrew MacPherson wrote: > ...
4 years ago (2016-12-06 15:56:19 UTC) #24
o1ka
Thank you for working on unit tests! https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.h File content/renderer/media/renderer_webaudiodevice_impl.h (right): https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.h#newcode29 content/renderer/media/renderer_webaudiodevice_impl.h:29: RendererWebAudioDeviceImpl(media::ChannelLayout layout, ...
4 years ago (2016-12-06 16:08:26 UTC) #25
Raymond Toy
https://codereview.chromium.org/2501863003/diff/80001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp File third_party/WebKit/Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/2501863003/diff/80001/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp#newcode246 third_party/WebKit/Source/modules/webaudio/AudioContext.cpp:246: return framesPerBuffer() * 2 / static_cast<double>(sampleRate()); On 2016/12/06 15:56:19, ...
4 years ago (2016-12-06 23:55:40 UTC) #26
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.h File content/renderer/media/renderer_webaudiodevice_impl.h (right): https://codereview.chromium.org/2501863003/diff/80001/content/renderer/media/renderer_webaudiodevice_impl.h#newcode29 content/renderer/media/renderer_webaudiodevice_impl.h:29: RendererWebAudioDeviceImpl(media::ChannelLayout layout, > Right. For AudioDeviceFactory and AudioRendererSink mocking ...
4 years ago (2016-12-07 10:55:24 UTC) #27
o1ka
Thanks Andrew! Would be nice to see a couple more tests (see comments). https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl.h File ...
4 years ago (2016-12-07 20:56:02 UTC) #28
Andrew MacPherson
Thanks olka@! https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl.h File content/renderer/media/renderer_webaudiodevice_impl.h (right): https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl.h#newcode54 content/renderer/media/renderer_webaudiodevice_impl.h:54: // Callback to get output device params ...
4 years ago (2016-12-08 10:06:12 UTC) #29
o1ka
https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc File content/renderer/media/renderer_webaudiodevice_impl_unittest.cc (right): https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc#newcode38 content/renderer/media/renderer_webaudiodevice_impl_unittest.cc:38: class MockRendererWebAudioDeviceImpl : public RendererWebAudioDeviceImpl { On 2016/12/08 10:06:12, ...
4 years ago (2016-12-08 10:57:19 UTC) #34
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc File content/renderer/media/renderer_webaudiodevice_impl_unittest.cc (right): https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc#newcode133 content/renderer/media/renderer_webaudiodevice_impl_unittest.cc:133: EXPECT_GT(balanced_frames, interactive_frames); On 2016/12/08 10:57:19, o1ka wrote: > On ...
4 years ago (2016-12-08 12:22:54 UTC) #35
o1ka
https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc File content/renderer/media/renderer_webaudiodevice_impl_unittest.cc (right): https://codereview.chromium.org/2501863003/diff/140001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc#newcode133 content/renderer/media/renderer_webaudiodevice_impl_unittest.cc:133: EXPECT_GT(balanced_frames, interactive_frames); On 2016/12/08 12:22:54, Andrew MacPherson wrote: > ...
4 years ago (2016-12-08 13:10:16 UTC) #36
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/160001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc File content/renderer/media/renderer_webaudiodevice_impl_unittest.cc (right): https://codereview.chromium.org/2501863003/diff/160001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc#newcode148 content/renderer/media/renderer_webaudiodevice_impl_unittest.cc:148: EXPECT_EQ(webaudio_device_->framesPerBuffer(), kHardwareBufferSize); On 2016/12/08 13:10:16, o1ka wrote: > On ...
4 years ago (2016-12-08 13:53:53 UTC) #37
o1ka
On 2016/12/08 13:53:53, Andrew MacPherson wrote: > https://codereview.chromium.org/2501863003/diff/160001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc > File content/renderer/media/renderer_webaudiodevice_impl_unittest.cc (right): > > https://codereview.chromium.org/2501863003/diff/160001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc#newcode148 ...
4 years ago (2016-12-08 14:07:07 UTC) #38
Raymond Toy
https://codereview.chromium.org/2501863003/diff/140001/third_party/WebKit/Source/platform/audio/AudioDestination.cpp File third_party/WebKit/Source/platform/audio/AudioDestination.cpp (right): https://codereview.chromium.org/2501863003/diff/140001/third_party/WebKit/Source/platform/audio/AudioDestination.cpp#newcode98 third_party/WebKit/Source/platform/audio/AudioDestination.cpp:98: callbackBufferSizeHistogram.sample(m_callbackBufferSize); On 2016/12/07 20:56:01, o1ka wrote: > rtoy@ - ...
4 years ago (2016-12-08 16:24:50 UTC) #39
Raymond Toy
https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html File third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html (right): https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html#newcode57 third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html:57: }).throw(); Include the type of error thrown in "throw()". ...
4 years ago (2016-12-08 17:14:38 UTC) #40
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html File third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html (right): https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html#newcode57 third_party/WebKit/LayoutTests/webaudio/audiocontextoptions.html:57: }).throw(); On 2016/12/08 17:14:38, Raymond Toy wrote: > Include ...
4 years ago (2016-12-09 12:34:14 UTC) #41
Raymond Toy
https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl File third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl (right): https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl#newcode9 third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl:9: LatencyHint latencyHint = "interactive"; On 2016/12/09 12:34:14, Andrew MacPherson ...
4 years ago (2016-12-13 15:53:11 UTC) #42
Andrew MacPherson
https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl File third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl (right): https://codereview.chromium.org/2501863003/diff/200001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl#newcode9 third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl:9: LatencyHint latencyHint = "interactive"; On 2016/12/13 15:53:11, Raymond Toy ...
4 years ago (2016-12-14 09:07:20 UTC) #43
Raymond Toy
lgtm for the webaudio parts. Thanks for working on this and for your patience during ...
4 years ago (2016-12-14 18:23:33 UTC) #44
Andrew MacPherson
Awesome, thanks Raymond and thanks again for all the help here! Regarding the intent, is ...
4 years ago (2016-12-14 19:51:00 UTC) #45
Raymond Toy
On 2016/12/14 19:51:00, Andrew MacPherson wrote: > Awesome, thanks Raymond and thanks again for all ...
4 years ago (2016-12-14 19:54:53 UTC) #46
hongchan
Raymond already l-g-t-m this, but I'll leave mine here as well. lgtm
4 years ago (2016-12-20 19:40:23 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2501863003/300001
3 years, 10 months ago (2017-02-08 16:38:37 UTC) #50
Raymond Toy
tkent: PTAL at this. andrew: Can you update the description to include a link to ...
3 years, 10 months ago (2017-02-08 16:45:42 UTC) #53
Andrew MacPherson
On 2017/02/08 at 16:45:42, rtoy wrote: > tkent: PTAL at this. > > andrew: Can ...
3 years, 10 months ago (2017-02-08 16:51:52 UTC) #56
tkent
Web-exposed change lgtm.
3 years, 10 months ago (2017-02-08 22:38:36 UTC) #57
tkent
https://codereview.chromium.org/2501863003/diff/300001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl File third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl (right): https://codereview.chromium.org/2501863003/diff/300001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl#newcode1 third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-08 22:38:47 UTC) #59
Andrew MacPherson
On 2017/02/08 at 22:38:47, tkent wrote: > https://codereview.chromium.org/2501863003/diff/300001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl > File third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl (right): > > https://codereview.chromium.org/2501863003/diff/300001/third_party/WebKit/Source/modules/webaudio/AudioContextOptions.idl#newcode1 ...
3 years, 10 months ago (2017-02-09 08:24:03 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2501863003/320001
3 years, 10 months ago (2017-02-09 08:26:49 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/150276) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-09 08:29:39 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2501863003/340001
3 years, 10 months ago (2017-02-09 12:26:15 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/360455)
3 years, 10 months ago (2017-02-09 12:33:36 UTC) #70
Andrew MacPherson
olka@ rtoy@ The Android trybots are failing in the new RendererWebAudioDeviceImplTest.TestLatencyHintValues test due this check: ...
3 years, 10 months ago (2017-02-09 15:56:08 UTC) #71
o1ka
On 2017/02/09 15:56:08, Andrew MacPherson wrote: > olka@ rtoy@ The Android trybots are failing in ...
3 years, 10 months ago (2017-02-09 16:09:52 UTC) #72
Raymond Toy
On 2017/02/09 16:09:52, o1ka (CET) wrote: > On 2017/02/09 15:56:08, Andrew MacPherson wrote: > > ...
3 years, 10 months ago (2017-02-09 16:35:23 UTC) #73
o1ka
> Android latency really needs to be updated because it's > excessively conservative and really ...
3 years, 10 months ago (2017-02-09 16:39:59 UTC) #74
Raymond Toy
On 2017/02/09 16:39:59, o1ka (CET) wrote: > > Android latency really needs to be updated ...
3 years, 10 months ago (2017-02-09 16:43:45 UTC) #75
Andrew MacPherson
On 2017/02/09 at 16:43:45, rtoy wrote: > On 2017/02/09 16:39:59, o1ka (CET) wrote: > > ...
3 years, 10 months ago (2017-02-09 16:46:06 UTC) #76
Andrew MacPherson
On 2017/02/09 at 16:09:52, olka wrote: > > Could you remind me why do we ...
3 years, 10 months ago (2017-02-09 17:04:01 UTC) #77
Raymond Toy
On 2017/02/09 17:04:01, Andrew MacPherson wrote: > On 2017/02/09 at 16:09:52, olka wrote: > > ...
3 years, 10 months ago (2017-02-09 17:08:42 UTC) #78
Andrew MacPherson
Hi pfeldman@, would you be able to take a quick look at these files from ...
3 years, 10 months ago (2017-02-09 17:25:38 UTC) #80
pfeldman
lgtm
3 years, 10 months ago (2017-02-09 19:57:10 UTC) #85
pfeldman
lgtm
3 years, 10 months ago (2017-02-09 20:48:18 UTC) #86
Andrew MacPherson
On 2017/02/09 at 20:48:18, pfeldman wrote: > lgtm Great, thanks for the quick turnaround pfeldman! ...
3 years, 10 months ago (2017-02-10 07:19:02 UTC) #87
Andrew MacPherson
olka@ It looks like the Android failure in the new WebAudioDeviceImpl test is due to ...
3 years, 10 months ago (2017-02-10 12:06:05 UTC) #93
o1ka
On 2017/02/10 12:06:05, Andrew MacPherson wrote: > olka@ It looks like the Android failure in ...
3 years, 10 months ago (2017-02-10 13:44:35 UTC) #96
Andrew MacPherson
On 2017/02/10 at 13:44:35, olka wrote: > On 2017/02/10 12:06:05, Andrew MacPherson wrote: > > ...
3 years, 10 months ago (2017-02-10 15:33:36 UTC) #97
Andrew MacPherson
On 2017/02/10 at 13:44:35, olka wrote: > > This is not ok. We need to ...
3 years, 10 months ago (2017-02-12 19:32:53 UTC) #102
o1ka
Thanks Andrew! a question: https://codereview.chromium.org/2501863003/diff/440001/content/renderer/media/renderer_webaudiodevice_impl.h File content/renderer/media/renderer_webaudiodevice_impl.h (right): https://codereview.chromium.org/2501863003/diff/440001/content/renderer/media/renderer_webaudiodevice_impl.h#newcode79 content/renderer/media/renderer_webaudiodevice_impl.h:79: const scoped_refptr<base::SingleThreadTaskRunner>& GetMediaTaskRunner(); private? https://codereview.chromium.org/2501863003/diff/440001/content/renderer/media/renderer_webaudiodevice_impl_unittest.cc ...
3 years, 10 months ago (2017-02-13 08:29:30 UTC) #103
Andrew MacPherson
Thanks olka! https://codereview.chromium.org/2501863003/diff/440001/content/renderer/media/renderer_webaudiodevice_impl.h File content/renderer/media/renderer_webaudiodevice_impl.h (right): https://codereview.chromium.org/2501863003/diff/440001/content/renderer/media/renderer_webaudiodevice_impl.h#newcode79 content/renderer/media/renderer_webaudiodevice_impl.h:79: const scoped_refptr<base::SingleThreadTaskRunner>& GetMediaTaskRunner(); On 2017/02/13 at 08:29:30, ...
3 years, 10 months ago (2017-02-13 08:52:21 UTC) #104
o1ka
On 2017/02/13 08:52:21, Andrew MacPherson wrote: > Thanks olka! > > https://codereview.chromium.org/2501863003/diff/440001/content/renderer/media/renderer_webaudiodevice_impl.h > File content/renderer/media/renderer_webaudiodevice_impl.h ...
3 years, 10 months ago (2017-02-13 09:07:35 UTC) #105
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2501863003/460001
3 years, 10 months ago (2017-02-13 09:12:35 UTC) #108
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 10:51:43 UTC) #111
Message was sent while issue was closed.
Committed patchset #24 (id:460001) as
https://chromium.googlesource.com/chromium/src/+/4f85155e4b7ae25e1dfb21cf6868...

Powered by Google App Engine
This is Rietveld 408576698