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

Issue 2894873002: Improved audio buffer handling for iOS (Closed)

Created:
3 years, 7 months ago by henrika_webrtc
Modified:
3 years, 6 months ago
Reviewers:
kwiberg-webrtc
CC:
webrtc-reviews_webrtc.org
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Improved audio buffer handling for iOS. This change: Reduces complexity for audio playout by removing a redundant memcopy in the output audio path. Adds support for iOS simulator for playout since we now allow the audio layer to ask for different sizes of audio buffers at each callback. Real iOS devices always asks for the same size, simulators does not. This change comes without any new cost for real devices. BUG=b/37580746 Review-Url: https://codereview.webrtc.org/2894873002 Cr-Commit-Position: refs/heads/master@{#18321} Committed: https://chromium.googlesource.com/external/webrtc/+/bb6f7524bab7c839f8281e1db1d0e7f6cfaeeba6

Patch Set 1 #

Patch Set 2 : First version with working playout audio #

Patch Set 3 : Now uses ArrayView #

Patch Set 4 : Playout parts is done #

Patch Set 5 : nit #

Patch Set 6 : Removed unit test changes #

Patch Set 7 : Added capacity parameter #

Total comments: 19

Patch Set 8 : Feedback from kwiberg@ #

Patch Set 9 : nit #

Patch Set 10 : Added support for Android and did some minor changes for the recoridng side as well #

Patch Set 11 : iOS fix #

Patch Set 12 : nit #

Total comments: 3

Patch Set 13 : Final changes #

Patch Set 14 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -83 lines) Patch
M webrtc/modules/audio_device/android/opensles_player.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -4 lines 0 comments Download
M webrtc/modules/audio_device/android/opensles_recorder.cc View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -4 lines 0 comments Download
M webrtc/modules/audio_device/fine_audio_buffer.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -18 lines 0 comments Download
M webrtc/modules/audio_device/fine_audio_buffer.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -13 lines 0 comments Download
M webrtc/modules/audio_device/fine_audio_buffer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -16 lines 0 comments Download
M webrtc/modules/audio_device/ios/audio_device_ios.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M webrtc/modules/audio_device/ios/audio_device_ios.mm View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +18 lines, -24 lines 0 comments Download

Messages

Total messages: 52 (34 generated)
henrika_webrtc
PTAL
3 years, 7 months ago (2017-05-24 10:25:33 UTC) #5
kwiberg-webrtc
lgtm, but comments https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc File webrtc/modules/audio_device/fine_audio_buffer.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc#newcode30 webrtc/modules/audio_device/fine_audio_buffer.cc:30: playout_buffer_(0, capacity) { You don't specify ...
3 years, 6 months ago (2017-05-29 04:09:03 UTC) #6
henrika_webrtc
https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc File webrtc/modules/audio_device/fine_audio_buffer.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc#newcode30 webrtc/modules/audio_device/fine_audio_buffer.cc:30: playout_buffer_(0, capacity) { This CL is focusing on playout ...
3 years, 6 months ago (2017-05-29 10:33:51 UTC) #7
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/2894873002/140001
3 years, 6 months ago (2017-05-29 10:34:06 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/17484)
3 years, 6 months ago (2017-05-29 10:37:55 UTC) #12
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/2894873002/160001
3 years, 6 months ago (2017-05-29 10:40:16 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/17485)
3 years, 6 months ago (2017-05-29 10:43:46 UTC) #17
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/2894873002/160001
3 years, 6 months ago (2017-05-29 10:46:24 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x64_dbg/builds/14604) linux32_arm_dbg on master.tryserver.webrtc (JOB_FAILED, ...
3 years, 6 months ago (2017-05-29 10:51:55 UTC) #22
kwiberg-webrtc
https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc File webrtc/modules/audio_device/fine_audio_buffer.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc#newcode30 webrtc/modules/audio_device/fine_audio_buffer.cc:30: playout_buffer_(0, capacity) { On 2017/05/29 10:33:51, henrika_webrtc wrote: > ...
3 years, 6 months ago (2017-05-29 11:07:01 UTC) #23
henrika_webrtc
Done ;-) https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc File webrtc/modules/audio_device/fine_audio_buffer.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer.cc#newcode30 webrtc/modules/audio_device/fine_audio_buffer.cc:30: playout_buffer_(0, capacity) { Actually. I kept "capacity" ...
3 years, 6 months ago (2017-05-29 14:30:05 UTC) #26
henrika_webrtc
https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc File webrtc/modules/audio_device/fine_audio_buffer_unittest.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc#newcode127 webrtc/modules/audio_device/fine_audio_buffer_unittest.cc:127: rtc::ArrayView<int8_t>(out_buffer.get(), kFrameSizeBytes)); Actually. I don't really understand your comment. ...
3 years, 6 months ago (2017-05-29 15:01:34 UTC) #34
kwiberg-webrtc
https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc File webrtc/modules/audio_device/fine_audio_buffer_unittest.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc#newcode127 webrtc/modules/audio_device/fine_audio_buffer_unittest.cc:127: rtc::ArrayView<int8_t>(out_buffer.get(), kFrameSizeBytes)); On 2017/05/29 15:01:34, henrika_webrtc wrote: > Actually. ...
3 years, 6 months ago (2017-05-30 07:58:19 UTC) #39
henrika_webrtc
https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc File webrtc/modules/audio_device/fine_audio_buffer_unittest.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc#newcode127 webrtc/modules/audio_device/fine_audio_buffer_unittest.cc:127: rtc::ArrayView<int8_t>(out_buffer.get(), kFrameSizeBytes)); I should have explained better. The issue ...
3 years, 6 months ago (2017-05-30 08:37:15 UTC) #40
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/2894873002/260001
3 years, 6 months ago (2017-05-30 08:59:46 UTC) #47
commit-bot: I haz the power
Committed patchset #14 (id:260001) as https://chromium.googlesource.com/external/webrtc/+/bb6f7524bab7c839f8281e1db1d0e7f6cfaeeba6
3 years, 6 months ago (2017-05-30 09:01:40 UTC) #50
kwiberg-webrtc
https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc File webrtc/modules/audio_device/fine_audio_buffer_unittest.cc (right): https://codereview.webrtc.org/2894873002/diff/120001/webrtc/modules/audio_device/fine_audio_buffer_unittest.cc#newcode127 webrtc/modules/audio_device/fine_audio_buffer_unittest.cc:127: rtc::ArrayView<int8_t>(out_buffer.get(), kFrameSizeBytes)); On 2017/05/30 08:37:15, henrika_webrtc wrote: > I ...
3 years, 6 months ago (2017-05-30 09:05:17 UTC) #51
henrika_webrtc
3 years, 6 months ago (2017-05-30 09:08:52 UTC) #52
Message was sent while issue was closed.
Will do next time. Did not write this test originally and wanted to do an as
small
change as possible. See your point. Thanks!

Powered by Google App Engine
This is Rietveld 408576698