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

Issue 297313003: Initialize AudioContext on constructor to increase currentTime in real-time. (Closed)

Created:
6 years, 7 months ago by KhNo
Modified:
6 years, 6 months ago
Reviewers:
Raymond Toy
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Initialize AudioContext on constructor to increase currentTime in real-time. The AudioContext is not initialized to prevent unefficiant running of audio device before any node is created in the context. However, it is mismatched with the specification. According to the specification, currentTime must be increased when currentTime of context. "This is a time in seconds which starts at zero when the context is created and increases in real-time." TEST=manually tested that currentTime progresses by creating an AudioNode a short time after creating the context and verified that currentTime was not zero. BUG=377683 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175026

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add layout test for currentTime #

Patch Set 3 : Remove layout test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -13 lines) Patch
M LayoutTests/webaudio/audiocontext-max-contexts.html View 1 1 chunk +1 line, -4 lines 0 comments Download
M Source/modules/webaudio/AudioContext.h View 2 chunks +1 line, -3 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 4 chunks +7 lines, -5 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
KhNo
Could you review this patch? currentTime "This is a time in seconds which starts at ...
6 years, 7 months ago (2014-05-27 10:58:39 UTC) #1
Raymond Toy
Looks good overall. Just a few questions. https://codereview.chromium.org/297313003/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (left): https://codereview.chromium.org/297313003/diff/1/Source/modules/webaudio/AudioContext.cpp#oldcode124 Source/modules/webaudio/AudioContext.cpp:124: m_destinationNode = ...
6 years, 7 months ago (2014-05-27 17:49:45 UTC) #2
Raymond Toy
Oh, please update the title. This CL is really about initializing currentTime to 0 when ...
6 years, 7 months ago (2014-05-27 21:04:31 UTC) #3
KhNo
PTAL, I have tried creating a layout test for this patch. ( please check patch ...
6 years, 6 months ago (2014-05-28 14:39:51 UTC) #4
Raymond Toy
On 2014/05/28 14:39:51, KhNo wrote: > PTAL, I have tried creating a layout test for ...
6 years, 6 months ago (2014-05-28 16:39:23 UTC) #5
Raymond Toy
One nit: Maybe it is worth renaming constructCommon to initialize and move everything into that ...
6 years, 6 months ago (2014-05-28 16:43:08 UTC) #6
Raymond Toy
lgtm
6 years, 6 months ago (2014-05-28 16:43:16 UTC) #7
KhNo
On 2014/05/28 16:43:08, Raymond Toy wrote: > One nit: Maybe it is worth renaming constructCommon ...
6 years, 6 months ago (2014-05-29 01:55:58 UTC) #8
KhNo
On 2014/05/28 16:43:16, Raymond Toy wrote: > lgtm Thanks for reviewing.
6 years, 6 months ago (2014-05-29 01:57:39 UTC) #9
KhNo
The CQ bit was checked by keonho07.kim@samsung.com
6 years, 6 months ago (2014-05-29 01:57:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keonho07.kim@samsung.com/297313003/100001
6 years, 6 months ago (2014-05-29 01:58:10 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-05-29 03:12:09 UTC) #12
Message was sent while issue was closed.
Change committed as 175026

Powered by Google App Engine
This is Rietveld 408576698