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

Issue 565643003: Move utility functions for sample rate to AudioUtilities. (Closed)

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

Description

Move utility functions for sample rate to AudioUtilities. isSampleRateRangeGood() -> isValidAudioBufferSampleRate() minAllowedSampleRate() -> minAudioBufferSampleRate() maxAllowedSampleRate() -> maxAudioBufferSampleRate() These functions have been moved to AudioUtilities. Some const values were used in some files sporadically instead of them. Make these functions using every places. BUG=413244 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181947

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Update patchset as review. #

Total comments: 4

Patch Set 3 : Fix some nits on comments #

Patch Set 4 : Add modification in MediaElementSourceNode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -36 lines) Patch
M Source/modules/webaudio/AudioBuffer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/modules/webaudio/AudioBuffer.cpp View 1 2 chunks +6 lines, -17 lines 0 comments Download
M Source/modules/webaudio/AudioContext.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M Source/modules/webaudio/OfflineAudioContext.cpp View 1 2 chunks +8 lines, -3 lines 0 comments Download
M Source/platform/audio/AudioUtilities.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/audio/AudioUtilities.cpp View 1 2 2 chunks +18 lines, -0 lines 0 comments Download
M Source/platform/audio/HRTFPanner.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (8 generated)
KhNo
PTAL.
6 years, 3 months ago (2014-09-11 14:27:38 UTC) #3
Raymond Toy
https://codereview.chromium.org/565643003/diff/20001/Source/platform/audio/AudioUtilities.cpp File Source/platform/audio/AudioUtilities.cpp (right): https://codereview.chromium.org/565643003/diff/20001/Source/platform/audio/AudioUtilities.cpp#newcode71 Source/platform/audio/AudioUtilities.cpp:71: // Currently, we truncate the impulse responses to half ...
6 years, 3 months ago (2014-09-11 16:38:45 UTC) #4
KhNo
PTAL, Raymond. https://codereview.chromium.org/565643003/diff/20001/Source/platform/audio/AudioUtilities.cpp File Source/platform/audio/AudioUtilities.cpp (right): https://codereview.chromium.org/565643003/diff/20001/Source/platform/audio/AudioUtilities.cpp#newcode71 Source/platform/audio/AudioUtilities.cpp:71: // Currently, we truncate the impulse responses ...
6 years, 3 months ago (2014-09-12 15:01:05 UTC) #7
Raymond Toy
LGTM, with a few nits. Thanks for consolidating these into one place. https://codereview.chromium.org/565643003/diff/80001/Source/platform/audio/AudioUtilities.cpp File Source/platform/audio/AudioUtilities.cpp ...
6 years, 3 months ago (2014-09-12 15:56:55 UTC) #8
KhNo
Thanks for review. https://codereview.chromium.org/565643003/diff/80001/Source/platform/audio/AudioUtilities.cpp File Source/platform/audio/AudioUtilities.cpp (right): https://codereview.chromium.org/565643003/diff/80001/Source/platform/audio/AudioUtilities.cpp#newcode77 Source/platform/audio/AudioUtilities.cpp:77: // Windows can support up to ...
6 years, 3 months ago (2014-09-12 16:17:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565643003/100001
6 years, 3 months ago (2014-09-12 16:18:23 UTC) #11
KhNo
Raymond, I have add modification in MediaElementSourceNode file. Could you review it as well? I ...
6 years, 3 months ago (2014-09-12 17:53:29 UTC) #13
Raymond Toy
On 2014/09/12 17:53:29, KhNo wrote: > Raymond, I have add modification in MediaElementSourceNode file. > ...
6 years, 3 months ago (2014-09-12 18:24:06 UTC) #14
DaleCurtis
(uploading a new patch set cancels commit of the previous one, though it will still ...
6 years, 3 months ago (2014-09-12 18:25:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565643003/120001
6 years, 3 months ago (2014-09-13 01:09:41 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-13 02:15:51 UTC) #19
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as 181947

Powered by Google App Engine
This is Rietveld 408576698