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

Issue 2256833003: Cleanup of the AudioDeviceBuffer class (Closed)

Created:
4 years, 4 months ago by henrika_webrtc
Modified:
4 years, 4 months ago
Reviewers:
magjed_webrtc
CC:
webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Cleanup of the AudioDeviceBuffer class. WebRTC works on 10ms buffer sizes in both directions but this class has contained support for any size (with some limits) and for changes on the fly. It makes no sense to maintain such code and we have no tests to test it. This CL ensures that only 10ms audio buffers are supported and that nothing can be changed on the fly. It also updates the style to follow the Google C++ style guide. Finally, I remove very old (not tested and not maintained) support for file handling since the code is never used. It was more or less dead code. BUG=NONE R=magjed@webrtc.org Committed: https://crrev.com/cf327b45b9f5738950d4fca2b6a7b6030d508cdf Cr-Commit-Position: refs/heads/master@{#13833}

Patch Set 1 #

Patch Set 2 : More changes #

Total comments: 3

Patch Set 3 : Removed virtual #

Patch Set 4 : Restored virtual since this class is in fact mocked #

Patch Set 5 : Allocates buffers lazily (when first needed) #

Patch Set 6 : Ensures that all tests passes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -230 lines) Patch
M webrtc/modules/audio_device/audio_device_buffer.h View 1 2 3 4 4 chunks +56 lines, -42 lines 0 comments Download
M webrtc/modules/audio_device/audio_device_buffer.cc View 1 2 3 4 5 13 chunks +132 lines, -188 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
henrika_webrtc
PTAL
4 years, 4 months ago (2016-08-18 12:18:02 UTC) #4
magjed_webrtc
https://codereview.webrtc.org/2256833003/diff/20001/webrtc/modules/audio_device/audio_device_buffer.h File webrtc/modules/audio_device/audio_device_buffer.h (right): https://codereview.webrtc.org/2256833003/diff/20001/webrtc/modules/audio_device/audio_device_buffer.h#newcode54 webrtc/modules/audio_device/audio_device_buffer.h:54: virtual int32_t SetRecordedBuffer(const void* audio_buffer, Why are many of ...
4 years, 4 months ago (2016-08-18 14:07:01 UTC) #5
henrika_webrtc
Thanks. PTAL ;-) https://codereview.webrtc.org/2256833003/diff/20001/webrtc/modules/audio_device/audio_device_buffer.h File webrtc/modules/audio_device/audio_device_buffer.h (right): https://codereview.webrtc.org/2256833003/diff/20001/webrtc/modules/audio_device/audio_device_buffer.h#newcode54 webrtc/modules/audio_device/audio_device_buffer.h:54: virtual int32_t SetRecordedBuffer(const void* audio_buffer, Virtual? ...
4 years, 4 months ago (2016-08-18 14:22:00 UTC) #6
magjed_webrtc
lgtm https://codereview.webrtc.org/2256833003/diff/20001/webrtc/modules/audio_device/audio_device_buffer.h File webrtc/modules/audio_device/audio_device_buffer.h (right): https://codereview.webrtc.org/2256833003/diff/20001/webrtc/modules/audio_device/audio_device_buffer.h#newcode54 webrtc/modules/audio_device/audio_device_buffer.h:54: virtual int32_t SetRecordedBuffer(const void* audio_buffer, On 2016/08/18 14:22:00, ...
4 years, 4 months ago (2016-08-19 07:51:15 UTC) #7
henrika_webrtc
Thanks. Looks like I do break some tests. Will check and try to fix.
4 years, 4 months ago (2016-08-19 08:12:18 UTC) #8
henrika_webrtc
Thanks. Looks like I do break some tests. Will check and try to fix.
4 years, 4 months ago (2016-08-19 08:12:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2256833003/100001
4 years, 4 months ago (2016-08-19 13:24:50 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on master.tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 4 months ago (2016-08-19 14:12:41 UTC) #14
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/cf327b45b9f5738950d4fca2b6a7b6030d508cdf Cr-Commit-Position: refs/heads/master@{#13833}
4 years, 4 months ago (2016-08-19 14:38:12 UTC) #17
henrika_webrtc
Committed patchset #6 (id:100001) manually as cf327b45b9f5738950d4fca2b6a7b6030d508cdf (presubmit successful).
4 years, 4 months ago (2016-08-19 14:38:12 UTC) #18
henrika_webrtc
4 years, 4 months ago (2016-08-19 15:09:07 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.webrtc.org/2260183002/ by henrika@webrtc.org.

The reason for reverting is: Seems to break an external client..

Powered by Google App Engine
This is Rietveld 408576698