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

Issue 12806009: Add OpenSL configurations (Closed)

Created:
7 years, 9 months ago by leozwang1
Modified:
7 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, hellner1
Base URL:
https://src.chromium.org/svn/trunk/src/
Visibility:
Public.

Description

Add OpenSL configurations This patch has been landed in https://src.chromium.org/viewvc/chrome?view=rev&revision=207921 Descritpion: Both input and output need to be configured to use webrtc. However, it could affect other elements that use opensl as input or output, for example, webaudio, but it's not clear to me that how much audio will be degraded. A better solution could be that configuring OpenSL based on use cases. Please let me know your thoughts on this matter. BUG=222393

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 28

Patch Set 3 : #

Patch Set 4 : fix one compliation error #

Patch Set 5 : change included header files #

Patch Set 6 : cleanup header files #

Patch Set 7 : add opensles_outtput.h #

Total comments: 33

Patch Set 8 : address some comments, working on the rest #

Patch Set 9 : Addressed comments #

Total comments: 1

Patch Set 10 : moved macro #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -151 lines) Patch
M media/audio/android/opensles_input.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M media/audio/android/opensles_input.cc View 1 2 3 4 5 6 7 8 9 6 chunks +78 lines, -68 lines 0 comments Download
M media/audio/android/opensles_output.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M media/audio/android/opensles_output.cc View 1 2 3 4 5 6 7 8 9 6 chunks +85 lines, -80 lines 0 comments Download
M media/audio/android/opensles_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (0 generated)
leozwang1
please review it.
7 years, 9 months ago (2013-03-21 14:47:22 UTC) #1
qinmin
https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc File media/audio/android/opensles_input.cc (right): https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc#newcode218 media/audio/android/opensles_input.cc:218: // CreateAudioRecorder and specify SL_IID_ANDROIDCONFIGURATION. create AudioRecorder https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc#newcode223 media/audio/android/opensles_input.cc:223: ...
7 years, 9 months ago (2013-03-21 14:56:19 UTC) #2
tommi (sloooow) - chröme
https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc File media/audio/android/opensles_input.cc (right): https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc#newcode196 media/audio/android/opensles_input.cc:196: const SLuint32 number_of_interfaces = 2; what about: const SLInterfaceID ...
7 years, 9 months ago (2013-03-21 14:56:44 UTC) #3
Ami GONE FROM CHROMIUM
Please test the effect on webaudio and <audio> output. The linked bug 500s for me.
7 years, 9 months ago (2013-03-21 15:15:33 UTC) #4
leozwang1
Mainly replaced DCHECK. https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc File media/audio/android/opensles_input.cc (right): https://chromiumcodereview.appspot.com/12806009/diff/7002/media/audio/android/opensles_input.cc#newcode196 media/audio/android/opensles_input.cc:196: const SLuint32 number_of_interfaces = 2; On ...
7 years, 9 months ago (2013-03-21 15:33:35 UTC) #5
no longer working on chromium
I defer my part to Qinmin and Ami.
7 years, 9 months ago (2013-03-21 15:49:43 UTC) #6
leozwang1
Hi Ami and Raymond, is there a test set I should run through? I tried ...
7 years, 9 months ago (2013-03-21 16:00:13 UTC) #7
Raymond Toy (Google)
On 2013/03/21 16:00:13, leozwang1 wrote: > Hi Ami and Raymond, is there a test set ...
7 years, 9 months ago (2013-03-21 16:13:56 UTC) #8
leozwang1
Hi Raymond, please also test with Revision 189210 which we must have for webrtc.
7 years, 9 months ago (2013-03-21 16:24:39 UTC) #9
leozwang1
https://codereview.chromium.org/12806009/diff/7002/media/audio/android/opensles_input.h File media/audio/android/opensles_input.h (right): https://codereview.chromium.org/12806009/diff/7002/media/audio/android/opensles_input.h#newcode8 media/audio/android/opensles_input.h:8: #include <SLES/OpenSLES.h> Cannot move these to cc because header ...
7 years, 9 months ago (2013-03-21 17:43:38 UTC) #10
Ami GONE FROM CHROMIUM
On 2013/03/21 16:00:13, leozwang1 wrote: > Hi Ami and Raymond, is there a test set ...
7 years, 9 months ago (2013-03-21 17:49:16 UTC) #11
qinmin
https://codereview.chromium.org/12806009/diff/7002/media/audio/android/opensles_input.h File media/audio/android/opensles_input.h (right): https://codereview.chromium.org/12806009/diff/7002/media/audio/android/opensles_input.h#newcode8 media/audio/android/opensles_input.h:8: #include <SLES/OpenSLES.h> only OpenSLES_Android.h is used I suppose, and ...
7 years, 9 months ago (2013-03-21 17:51:45 UTC) #12
leozwang1
SLAndroidSimpleBufferQueueItf requires OpenSLES_Android.h which depends on OpenSLES.h. OpenSLES_AndroidConfiguration.h is included in OpenSLES_Android.h, I removed it ...
7 years, 9 months ago (2013-03-21 18:35:07 UTC) #13
Yaron
Removing myself as it looks like you have sufficient coverage in reviewers
7 years, 9 months ago (2013-03-21 21:07:35 UTC) #14
leozwang1
Raymond, any updates about webaudio test?
7 years, 9 months ago (2013-03-22 01:35:37 UTC) #15
Raymond Toy
No, I didn't try it. I was trying to my webaudio code building with the ...
7 years, 9 months ago (2013-03-22 02:44:45 UTC) #16
leozwang1
Raymond, yes, it's very important for webrtc, if this patch doesn't affect <audio>, I will ...
7 years, 9 months ago (2013-03-22 05:01:37 UTC) #17
Ami GONE FROM CHROMIUM
There are a bunch of nits/optional comments here, but the main thing is the next-to-last ...
7 years, 9 months ago (2013-03-22 16:24:41 UTC) #18
leozwang1
https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_input.cc File media/audio/android/opensles_input.cc (right): https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_input.cc#newcode87 media/audio/android/opensles_input.cc:87: if (SL_RESULT_SUCCESS != err) { sure I will. https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_input.cc#newcode87 ...
7 years, 9 months ago (2013-03-22 21:37:09 UTC) #19
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_output.cc File media/audio/android/opensles_output.cc (right): https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_output.cc#newcode231 media/audio/android/opensles_output.cc:231: SLint32 stream_type = SL_ANDROID_STREAM_VOICE; On 2013/03/22 21:37:09, leozwang1 wrote: ...
7 years, 9 months ago (2013-03-22 22:29:55 UTC) #20
leozwang1
https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_output.cc File media/audio/android/opensles_output.cc (right): https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_output.cc#newcode231 media/audio/android/opensles_output.cc:231: SLint32 stream_type = SL_ANDROID_STREAM_VOICE; can you teach me how ...
7 years, 9 months ago (2013-03-22 22:44:48 UTC) #21
Ami GONE FROM CHROMIUM
https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_output.cc File media/audio/android/opensles_output.cc (right): https://codereview.chromium.org/12806009/diff/42001/media/audio/android/opensles_output.cc#newcode231 media/audio/android/opensles_output.cc:231: SLint32 stream_type = SL_ANDROID_STREAM_VOICE; On 2013/03/22 22:44:48, leozwang1 wrote: ...
7 years, 9 months ago (2013-03-22 23:34:19 UTC) #22
leozwang1
PTAL. The answer to your audio quality question is still unknown. https://chromiumcodereview.appspot.com/12806009/diff/42001/media/audio/android/opensles_input.cc File media/audio/android/opensles_input.cc (right): ...
7 years, 9 months ago (2013-03-23 07:00:39 UTC) #23
Ami GONE FROM CHROMIUM
Modulo moving the macro into the .cc files (have two copies of it), this is ...
7 years, 9 months ago (2013-03-23 20:07:21 UTC) #24
Ami GONE FROM CHROMIUM
PS#10 addressed all my coding concerns. Audio quality questions are still being discussed out of ...
7 years, 9 months ago (2013-03-24 20:10:39 UTC) #25
hellner1
On 2013/03/24 20:10:39, Ami Fischman wrote: > PS#10 addressed all my coding concerns. Audio quality ...
7 years, 6 months ago (2013-06-10 13:21:29 UTC) #26
Ami GONE FROM CHROMIUM
The last email on the subject was from me to Leo and pasted below (slightly ...
7 years, 6 months ago (2013-06-10 16:55:17 UTC) #27
leozwang2
If you start a new cl, please add qinmin@ and rtoy@ as the reviewers who ...
7 years, 6 months ago (2013-06-10 19:08:22 UTC) #28
wjia(left Chromium)
Ami, I have tested this patch and it allows user to adjust volume. I think ...
7 years, 6 months ago (2013-06-17 22:40:44 UTC) #29
Ami GONE FROM CHROMIUM
7 years, 6 months ago (2013-06-18 01:31:54 UTC) #30
On 2013/06/17 22:40:44, wjia wrote:
> Ami,
> 
> I have tested this patch and it allows user to adjust volume. I think we'd
have
> this patch landed.

Wei,
See my comment #27 in the reviewlog.  If you want to take over this CL to land
it you'll need to upload it to a new rietveld issue (see Leo's request in #28).
Please make sure to rewrite the CL description so it says what it does and how
it was tested.

Powered by Google App Engine
This is Rietveld 408576698