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

Issue 15619003: Add support for WaveShaperNode.oversample (Closed)

Created:
7 years, 7 months ago by Chris Rogers
Modified:
7 years, 6 months ago
CC:
blink-reviews, jeez, eae+blinkwatch
Visibility:
Public.

Description

Add support for WaveShaperNode.oversample Please see specification for details: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveShaperNode .oversample specifies what type of oversampling (if any) should be used when applying the shaping curve. The default value is "none", meaning the curve will be applied directly to the input samples. A value of "2x" or "4x" can improve the quality of the processing by avoiding some aliasing, with the "4x" value yielding the highest quality. TEST=webaudio/waveshaper-oversample-2x.html, webaudio/waveshaper-oversample-4x.html R=kbr@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151686

Patch Set 1 #

Patch Set 2 : cleanup DownSampler #

Patch Set 3 : minor tweak to test file #

Patch Set 4 : fix signed/unsigned compiler warning #

Patch Set 5 : thread-safety #

Total comments: 16

Patch Set 6 : address review comments #

Patch Set 7 : log aliasing error in dbFS when test fails #

Patch Set 8 : temporarily disable tests #

Patch Set 9 : change TestExpectations in middle of file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+833 lines, -70 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/webaudio/resources/waveshaper-testing.js View 1 2 3 4 5 6 1 chunk +175 lines, -0 lines 0 comments Download
A LayoutTests/webaudio/waveshaper-oversample-2x.html View 1 chunk +34 lines, -0 lines 0 comments Download
A + LayoutTests/webaudio/waveshaper-oversample-2x-expected.txt View 4 5 1 chunk +2 lines, -3 lines 0 comments Download
A LayoutTests/webaudio/waveshaper-oversample-4x.html View 1 chunk +34 lines, -0 lines 0 comments Download
A + LayoutTests/webaudio/waveshaper-oversample-4x-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A + Source/core/platform/audio/DownSampler.h View 1 2 3 4 5 1 chunk +29 lines, -25 lines 0 comments Download
A Source/core/platform/audio/DownSampler.cpp View 1 2 3 4 5 6 7 1 chunk +151 lines, -0 lines 0 comments Download
A + Source/core/platform/audio/UpSampler.h View 1 2 3 4 5 1 chunk +31 lines, -25 lines 0 comments Download
A Source/core/platform/audio/UpSampler.cpp View 1 2 3 4 5 6 7 1 chunk +134 lines, -0 lines 0 comments Download
M Source/modules/webaudio/WaveShaperDSPKernel.h View 1 2 3 4 2 chunks +28 lines, -9 lines 0 comments Download
M Source/modules/webaudio/WaveShaperDSPKernel.cpp View 1 2 3 4 5 2 chunks +135 lines, -5 lines 0 comments Download
M Source/modules/webaudio/WaveShaperNode.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/modules/webaudio/WaveShaperNode.cpp View 3 chunks +31 lines, -0 lines 0 comments Download
M Source/modules/webaudio/WaveShaperNode.idl View 1 chunk +7 lines, -0 lines 0 comments Download
M Source/modules/webaudio/WaveShaperProcessor.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M Source/modules/webaudio/WaveShaperProcessor.cpp View 1 2 3 4 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Chris Rogers
7 years, 7 months ago (2013-05-22 00:00:42 UTC) #1
Chris Rogers
Ken, I'll be happy to chat with you in person to help give you an ...
7 years, 7 months ago (2013-05-22 00:05:29 UTC) #2
Ken Russell (switch to Gerrit)
Thanks for the in-person chat today. Some questions. https://codereview.chromium.org/15619003/diff/19001/Source/core/platform/audio/DownSampler.cpp File Source/core/platform/audio/DownSampler.cpp (right): https://codereview.chromium.org/15619003/diff/19001/Source/core/platform/audio/DownSampler.cpp#newcode107 Source/core/platform/audio/DownSampler.cpp:107: m_convolver.process(&m_reducedKernel, ...
7 years, 7 months ago (2013-05-23 02:29:25 UTC) #3
Chris Rogers
PTAL https://codereview.chromium.org/15619003/diff/19001/Source/core/platform/audio/DownSampler.cpp File Source/core/platform/audio/DownSampler.cpp (right): https://codereview.chromium.org/15619003/diff/19001/Source/core/platform/audio/DownSampler.cpp#newcode107 Source/core/platform/audio/DownSampler.cpp:107: m_convolver.process(&m_reducedKernel, oddSamplesP, destP, destFramesToProcess); On 2013/05/23 02:29:25, kbr ...
7 years, 7 months ago (2013-05-24 20:09:04 UTC) #4
Ken Russell (switch to Gerrit)
Thanks for the enhanced asserts and explanation of m_inputBuffer. LGTM
7 years, 6 months ago (2013-05-28 21:01:50 UTC) #5
Chris Rogers
7 years, 6 months ago (2013-06-03 19:45:03 UTC) #6
Message was sent while issue was closed.
Committed patchset #9 manually as r151686.

Powered by Google App Engine
This is Rietveld 408576698