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

Issue 1225133003: Update audio code to use size_t more correctly, (Closed)

Created:
5 years, 5 months ago by Peter Kasting
Modified:
5 years, 4 months ago
Reviewers:
kwiberg-webrtc
CC:
hlundin-webrtc, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Update audio code to use size_t more correctly, webrtc/modules/audio_coding/main/ portion. This is a piece of https://codereview.webrtc.org/1230503003 , split out to a separate change to make reviewing easier. BUG=chromium:81439 TEST=none

Patch Set 1 #

Total comments: 9

Patch Set 2 : Review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -49 lines) Patch
M webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_receive_test_oldapi.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_receiver.cc View 6 chunks +12 lines, -9 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_resampler.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_resampler.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_send_test.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_send_test.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_send_test_oldapi.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/acm_send_test_oldapi.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc View 1 4 chunks +14 lines, -11 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest_oldapi.cc View 1 chunk +2 lines, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/acm2/codec_manager.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/main/test/PCMFile.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/main/test/PCMFile.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/main/test/SpatialAudio.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/main/test/initial_delay_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_coding/main/test/opus_test.cc View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Peter Kasting
5 years, 5 months ago (2015-07-10 00:14:56 UTC) #2
kwiberg-webrtc
lgtm https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc File webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc (left): https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc#oldcode94 webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc:94: int i = n - 1; Hmm. This ...
5 years, 5 months ago (2015-07-12 17:39:26 UTC) #3
Peter Kasting
https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc File webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc (left): https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc#oldcode94 webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc:94: int i = n - 1; On 2015/07/12 at ...
5 years, 5 months ago (2015-07-13 02:46:27 UTC) #4
Peter Kasting
On 2015/07/13 at 02:46:27, Peter Kasting wrote: > https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/test/PCMFile.cc#newcode154 > webrtc/modules/audio_coding/main/test/PCMFile.cc:154: for (k = 0; ...
5 years, 5 months ago (2015-07-13 22:24:23 UTC) #5
kwiberg-webrtc
https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc File webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc (right): https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc#newcode95 webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc:95: for (size_t n = frame.samples_per_channel_; n > 0; --n) ...
5 years, 5 months ago (2015-07-15 01:05:01 UTC) #6
Peter Kasting
https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc File webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc (right): https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc#newcode95 webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc:95: for (size_t n = frame.samples_per_channel_; n > 0; --n) ...
5 years, 5 months ago (2015-07-15 06:30:09 UTC) #7
Peter Kasting
5 years, 5 months ago (2015-07-17 00:12:08 UTC) #8
https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/m...
File webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc (right):

https://codereview.webrtc.org/1225133003/diff/1/webrtc/modules/audio_coding/m...
webrtc/modules/audio_coding/main/acm2/audio_coding_module_impl.cc:95: for
(size_t n = frame.samples_per_channel_; n > 0; --n) {
On 2015/07/15 at 06:30:09, Peter Kasting wrote:
> On 2015/07/15 at 01:05:00, kwiberg-webrtc wrote:
> > It seems our intuitions about what's most natural here differ. But the
difference isn't large, and the compiler can't possibly care, so choose based on
whether getting the last word or sucking up to reviewers is more important to
you. :-)
> 
> When I'm working with webrtc code (where I'm basically an interloper) and
trying to earn reviewer approval for montrous patchsets that change hundreds of
files, I'll choose sucking up to reviewers :)

Done.

Powered by Google App Engine
This is Rietveld 408576698