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

Issue 10952024: Adding pulseaudio input support to chrome (Closed)

Created:
8 years, 3 months ago by no longer working on chromium
Modified:
7 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Adding pulseaudio input support to chrome. This input implementation also support device enumeration and volume APIs. BUG=172259, 169075, 175393, 164361 TEST=content_unittests and media_unittests, manual test with https://webrtc-demos.appspot.com/html/pc1.html Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=184122

Patch Set 1 #

Patch Set 2 : sound #

Patch Set 3 : second #

Patch Set 4 : #

Patch Set 5 : rebased. #

Patch Set 6 : rebased and ready for review. #

Total comments: 30

Patch Set 7 : moved the pulse code to AudioManagerPulse, and addressed Dale's comments. #

Total comments: 10

Patch Set 8 : switched to dynamic linking and addressed Andrew's comments. #

Total comments: 16

Patch Set 9 : addressed Dale's comments. #

Patch Set 10 : used the stubs script to do the dynamic linking #

Total comments: 62

Patch Set 11 : addressed Dale's comments #

Total comments: 2

Patch Set 12 : rebased and addressed Dale's final comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1067 lines, -196 lines) Patch
M media/audio/audio_util.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M media/audio/linux/audio_manager_linux.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M media/audio/linux/audio_manager_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +33 lines, -26 lines 0 comments Download
A + media/audio/pulse/audio_manager_pulse.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +28 lines, -27 lines 0 comments Download
A media/audio/pulse/audio_manager_pulse.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +261 lines, -0 lines 0 comments Download
A media/audio/pulse/pulse.sigs View 1 2 3 4 5 6 7 8 9 1 chunk +50 lines, -0 lines 0 comments Download
A media/audio/pulse/pulse_input.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +82 lines, -0 lines 0 comments Download
A media/audio/pulse/pulse_input.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +323 lines, -0 lines 0 comments Download
M media/audio/pulse/pulse_output.h View 1 2 3 4 5 6 8 9 2 chunks +0 lines, -9 lines 0 comments Download
M media/audio/pulse/pulse_output.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +23 lines, -127 lines 0 comments Download
A media/audio/pulse/pulse_stub_header.fragment View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
A media/audio/pulse/pulse_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +54 lines, -0 lines 0 comments Download
A media/audio/pulse/pulse_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +131 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +70 lines, -5 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
no longer working on chromium
Hi guys, could you please review this CL? Dale, I remember you mentioned that we ...
7 years, 11 months ago (2013-01-25 17:23:35 UTC) #1
scherkus (not reviewing)
Few high level questions to help me review ... 1) Are you aiming for a ...
7 years, 11 months ago (2013-01-26 01:26:28 UTC) #2
no longer working on chromium
Hi Andrew, please see answer in line. On 2013/01/26 01:26:28, scherkus wrote: > Few high ...
7 years, 10 months ago (2013-01-28 14:33:30 UTC) #3
scherkus (not reviewing)
On 2013/01/28 14:33:30, xians1 wrote: > Hi Andrew, please see answer in line. > > ...
7 years, 10 months ago (2013-01-29 03:30:23 UTC) #4
DaleCurtis
I'm pretty sure xians is right and we'll get runtime errors for missing symbols on ...
7 years, 10 months ago (2013-01-29 19:08:50 UTC) #5
DaleCurtis
Haven't reviewed pulse_util.cc yet. https://codereview.chromium.org/10952024/diff/17011/media/audio/linux/audio_manager_linux.cc File media/audio/linux/audio_manager_linux.cc (right): https://codereview.chromium.org/10952024/diff/17011/media/audio/linux/audio_manager_linux.cc#newcode66 media/audio/linux/audio_manager_linux.cc:66: #if defined(USE_PULSEAUDIO) Construct in #if ...
7 years, 10 months ago (2013-01-30 02:54:30 UTC) #6
Paweł Hajdan Jr.
On 2013/01/29 19:08:50, DaleCurtis wrote: > I'm pretty sure xians is right and we'll get ...
7 years, 10 months ago (2013-01-30 08:55:35 UTC) #7
no longer working on chromium
Hi Andrew, Do you know doing a dynamic linking to a library is quick or ...
7 years, 10 months ago (2013-01-30 13:55:10 UTC) #8
scherkus (not reviewing)
On 2013/01/30 13:55:10, xians1 wrote: > Hi Andrew, > > Do you know doing a ...
7 years, 10 months ago (2013-01-31 02:05:20 UTC) #9
no longer working on chromium
Dale and Scherkus, sorry for the silence when I was busy with UI. I moved ...
7 years, 10 months ago (2013-02-12 17:35:58 UTC) #10
scherkus (not reviewing)
https://codereview.chromium.org/10952024/diff/31001/media/audio/audio_util.cc File media/audio/audio_util.cc (right): https://codereview.chromium.org/10952024/diff/31001/media/audio/audio_util.cc#newcode158 media/audio/audio_util.cc:158: // TODO(crogers) : return correct value in rare non-48KHz ...
7 years, 10 months ago (2013-02-14 00:51:35 UTC) #11
no longer working on chromium
Hello, I just added the dynamic linking to the pulse audio library. It will try ...
7 years, 10 months ago (2013-02-14 11:36:07 UTC) #12
DaleCurtis
I definitely recommend you look at generate_stubs, the pulse_wrapper makes me sad :( https://codereview.chromium.org/10952024/diff/35003/media/audio/linux/audio_manager_linux.cc File ...
7 years, 10 months ago (2013-02-15 00:28:51 UTC) #13
no longer working on chromium
Hi Dale, I think I have already addressed all your comments. I was not aware ...
7 years, 10 months ago (2013-02-15 16:07:33 UTC) #14
scherkus (not reviewing)
If the generate stubs approach can work I would strongly prefer to go that path ...
7 years, 10 months ago (2013-02-15 18:06:45 UTC) #15
no longer working on chromium
All right, I will what I can do here. Is there any document/wiki about the ...
7 years, 10 months ago (2013-02-15 23:32:21 UTC) #16
DaleCurtis
Just what I wrote in my comment and what's in tools/generate_stubs.py. It shouldn't be difficult ...
7 years, 10 months ago (2013-02-15 23:35:06 UTC) #17
no longer working on chromium
Dale, could you please briefly tell me how the dynamic link is done when using ...
7 years, 10 months ago (2013-02-15 23:39:21 UTC) #18
DaleCurtis
Library load would be done via a InitializeStubs() call like we have in media_posix. This ...
7 years, 10 months ago (2013-02-15 23:47:14 UTC) #19
DaleCurtis
(You would call InitializeStubs() before choosing AudioManagerPulse() or AudioManagerLinux())
7 years, 10 months ago (2013-02-15 23:47:45 UTC) #20
no longer working on chromium
Hi Dale and Andrew, I have already changed to code to use the stub script ...
7 years, 10 months ago (2013-02-18 15:08:49 UTC) #21
DaleCurtis
.sigs is much nicer! https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/audio_manager_pulse.cc File media/audio/pulse/audio_manager_pulse.cc (right): https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/audio_manager_pulse.cc#newcode26 media/audio/pulse/audio_manager_pulse.cc:26: namespace { No need for ...
7 years, 10 months ago (2013-02-20 00:17:38 UTC) #22
no longer working on chromium
https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/audio_manager_pulse.cc File media/audio/pulse/audio_manager_pulse.cc (right): https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/audio_manager_pulse.cc#newcode26 media/audio/pulse/audio_manager_pulse.cc:26: namespace { On 2013/02/20 00:17:38, DaleCurtis wrote: > No ...
7 years, 10 months ago (2013-02-20 14:43:38 UTC) #23
no longer working on chromium
ping
7 years, 10 months ago (2013-02-21 08:33:15 UTC) #24
DaleCurtis
lgtm https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/pulse_input.cc#newcode133 media/audio/pulse/pulse_input.cc:133: pa_operation* operation = pa_stream_cork(handle_, 0, NULL, NULL); On ...
7 years, 10 months ago (2013-02-21 21:54:21 UTC) #25
no longer working on chromium
https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/10952024/diff/62001/media/audio/pulse/pulse_input.cc#newcode133 media/audio/pulse/pulse_input.cc:133: pa_operation* operation = pa_stream_cork(handle_, 0, NULL, NULL); On 2013/02/21 ...
7 years, 10 months ago (2013-02-22 13:12:28 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xians@chromium.org/10952024/80001
7 years, 10 months ago (2013-02-22 13:12:42 UTC) #27
commit-bot: I haz the power
7 years, 10 months ago (2013-02-22 16:16:59 UTC) #28
Message was sent while issue was closed.
Change committed as 184122

Powered by Google App Engine
This is Rietveld 408576698