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

Issue 2574053003: Improves release of allocated audio resources on Android (Closed)

Created:
4 years ago by henrika_webrtc
Modified:
4 years ago
Reviewers:
the sun, magjed_webrtc
CC:
webrtc-reviews_webrtc.org, AlexG
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : nit #

Patch Set 3 : Feedback from solenberg@ #

Total comments: 6

Patch Set 4 : Removed thread-model change #

Total comments: 2

Patch Set 5 : restored one error check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java View 1 2 3 4 3 chunks +11 lines, -2 lines 0 comments Download
M webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java View 1 2 5 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
magjed_webrtc
lgtm https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java (right): https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java#newcode84 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java:84: Logging.e(TAG, "AudioRecord.startRecording failed: " + e.getMessage()); Should you ...
4 years ago (2016-12-14 16:29:04 UTC) #9
the sun
https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java (right): https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java#newcode228 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java:228: releaseAudioResources(); I'm not sure you should do this. The ...
4 years ago (2016-12-14 19:35:57 UTC) #10
henrika_webrtc
Minor fix and an outstanding question. https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java (right): https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java#newcode84 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java:84: Logging.e(TAG, "AudioRecord.startRecording failed: ...
4 years ago (2016-12-15 08:54:33 UTC) #11
henrika_webrtc
Off-line discussion works for me solenberg@
4 years ago (2016-12-15 08:55:50 UTC) #12
henrika_webrtc
Off-line discussion works for me solenberg@
4 years ago (2016-12-15 08:55:52 UTC) #13
henrika_webrtc
https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java (right): https://codereview.webrtc.org/2574053003/diff/1/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java#newcode228 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java:228: releaseAudioResources(); Wait. I get it now.
4 years ago (2016-12-15 08:58:08 UTC) #14
henrika_webrtc
solenberg@: PTAL
4 years ago (2016-12-15 09:04:23 UTC) #15
the sun
https://codereview.webrtc.org/2574053003/diff/40001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java (right): https://codereview.webrtc.org/2574053003/diff/40001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java#newcode84 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java:84: Logging.e(TAG, "AudioRecord.startRecording failed: " + e.getMessage()); Does any logging ...
4 years ago (2016-12-15 13:22:44 UTC) #17
henrika_webrtc
Great comments Fredrik. PTAL https://codereview.webrtc.org/2574053003/diff/40001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java (right): https://codereview.webrtc.org/2574053003/diff/40001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java#newcode84 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java:84: Logging.e(TAG, "AudioRecord.startRecording failed: " + ...
4 years ago (2016-12-15 13:49:44 UTC) #19
the sun
lgtm % comment https://codereview.webrtc.org/2574053003/diff/60001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java (left): https://codereview.webrtc.org/2574053003/diff/60001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java#oldcode216 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java:216: if (audioRecord.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { This ...
4 years ago (2016-12-15 14:11:24 UTC) #20
henrika_webrtc
https://codereview.webrtc.org/2574053003/diff/60001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java File webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java (left): https://codereview.webrtc.org/2574053003/diff/60001/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java#oldcode216 webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java:216: if (audioRecord.getRecordingState() != AudioRecord.RECORDSTATE_RECORDING) { Good point. It is ...
4 years ago (2016-12-15 14:20:01 UTC) #21
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/2574053003/80001
4 years ago (2016-12-15 14:20:24 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_dbg/builds/4646)
4 years ago (2016-12-15 14:38:05 UTC) #26
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/ac8d5164f0187d21da54905ed1143e6b04f5a7ab Cr-Commit-Position: refs/heads/master@{#15637}
4 years ago (2016-12-15 14:43:17 UTC) #28
henrika_webrtc
Committed patchset #5 (id:80001) manually as ac8d5164f0187d21da54905ed1143e6b04f5a7ab (presubmit successful).
4 years ago (2016-12-15 14:43:20 UTC) #30
henrika_webrtc
4 years ago (2016-12-15 14:43:33 UTC) #31
Message was sent while issue was closed.
Compile errors are unrelated to my CL. Landing manually.

Powered by Google App Engine
This is Rietveld 408576698