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

Issue 1711823004: Let default device in PulseAudio be the system default device (Closed)

Created:
4 years, 10 months ago by rchtara
Modified:
4 years, 8 months ago
CC:
DaleCurtis, chromium-reviews, feature-media-reviews_chromium.org, o1ka
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use the the system default device instead of the application default when opening the default device in PulseAudio. BUG=343839 NOTRY=true Committed: https://crrev.com/254c78a58a9da3a320c5ce8b1d84c0843fe3b8bc Cr-Commit-Position: refs/heads/master@{#383945}

Patch Set 1 #

Patch Set 2 : remove space #

Total comments: 6

Patch Set 3 : fix issues #

Total comments: 5

Patch Set 4 : move to pulseaudioinput/outputstream #

Patch Set 5 : remove headers #

Patch Set 6 : #

Total comments: 52

Patch Set 7 : rebase #

Patch Set 8 : fix #

Patch Set 9 : fix #

Total comments: 30

Patch Set 10 : latest #

Total comments: 32

Patch Set 11 : latest #

Total comments: 8

Patch Set 12 : latest #

Total comments: 4

Patch Set 13 : last #

Patch Set 14 : rebase #

Total comments: 2

Patch Set 15 : last #

Total comments: 6

Patch Set 16 : #

Patch Set 17 : #

Total comments: 8

Patch Set 18 : #

Patch Set 19 : #

Total comments: 2

Patch Set 20 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -57 lines) Patch
M media/audio/pulse/pulse_input.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +16 lines, -1 line 0 comments Download
M media/audio/pulse/pulse_input.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +28 lines, -1 line 0 comments Download
M media/audio/pulse/pulse_output.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +19 lines, -0 lines 0 comments Download
M media/audio/pulse/pulse_output.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +93 lines, -1 line 0 comments Download
M media/audio/pulse/pulse_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -2 lines 0 comments Download
M media/audio/pulse/pulse_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +12 lines, -52 lines 0 comments Download

Messages

Total messages: 70 (13 generated)
rchtara
Hello, Could you please have a look to this cl? Thanks Riadh
4 years, 10 months ago (2016-02-19 13:24:46 UTC) #4
rchtara
Hello, Could you please have a look to this cl? Thanks Riadh
4 years, 10 months ago (2016-02-19 14:45:45 UTC) #5
rchtara
Hello tommi, I'm a new returning intern and grunell@chromium.org is my host. Nice to meet. ...
4 years, 10 months ago (2016-02-22 16:11:40 UTC) #7
tommi (sloooow) - chröme
How does this work wrt to the device selected by the user in the permission ...
4 years, 10 months ago (2016-02-22 17:26:43 UTC) #8
Henrik Grunell
On 2016/02/22 17:26:43, tommi-chromium wrote: > How does this work wrt to the device selected ...
4 years, 10 months ago (2016-02-22 17:41:04 UTC) #9
rchtara
On 2016/02/22 17:26:43, tommi-chromium wrote: > How does this work wrt to the device selected ...
4 years, 10 months ago (2016-02-22 22:33:56 UTC) #10
rchtara
On 2016/02/22 17:41:04, Henrik Grunell wrote: > On 2016/02/22 17:26:43, tommi-chromium wrote: > > How ...
4 years, 10 months ago (2016-02-22 22:35:27 UTC) #11
Henrik Grunell
https://codereview.chromium.org/1711823004/diff/20001/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc (right): https://codereview.chromium.org/1711823004/diff/20001/media/audio/pulse/pulse_util.cc#newcode167 media/audio/pulse/pulse_util.cc:167: void SystemDefaultDeviceCallback(pa_context* context, Put these functions in the anonymous ...
4 years, 10 months ago (2016-02-23 11:13:24 UTC) #12
Henrik Grunell
On 2016/02/22 17:26:43, tommi-chromium wrote: > How does this work wrt to the device selected ...
4 years, 10 months ago (2016-02-23 11:38:20 UTC) #13
rchtara
Could you please have a second look to the cl? Thanks a lot https://codereview.chromium.org/1711823004/diff/20001/media/audio/pulse/pulse_util.cc File ...
4 years, 10 months ago (2016-02-23 14:58:52 UTC) #14
Henrik Grunell
https://codereview.chromium.org/1711823004/diff/40001/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc (right): https://codereview.chromium.org/1711823004/diff/40001/media/audio/pulse/pulse_util.cc#newcode171 media/audio/pulse/pulse_util.cc:171: stream->device_name_ = info->default_source_name; This will overwrite the device name ...
4 years, 10 months ago (2016-02-24 15:54:53 UTC) #15
rchtara
On 2016/02/24 15:54:53, Henrik Grunell wrote: > https://codereview.chromium.org/1711823004/diff/40001/media/audio/pulse/pulse_util.cc > File media/audio/pulse/pulse_util.cc (right): > > https://codereview.chromium.org/1711823004/diff/40001/media/audio/pulse/pulse_util.cc#newcode171 ...
4 years, 10 months ago (2016-02-25 12:55:26 UTC) #16
rchtara
Could you please have a look to the new patch? Thanks Riadh https://codereview.chromium.org/1711823004/diff/40001/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc ...
4 years, 10 months ago (2016-02-25 17:17:26 UTC) #17
Henrik Grunell
Sorry for the delay. Move creating mainloop and context to the output class is good. ...
4 years, 9 months ago (2016-03-07 11:37:18 UTC) #18
Henrik Grunell
CC Olga FYI.
4 years, 9 months ago (2016-03-07 11:46:30 UTC) #19
Henrik Grunell
Another thing, make sure that you test thoroughly manually. There's no unit tests unfortunately for ...
4 years, 9 months ago (2016-03-07 11:49:17 UTC) #20
rchtara
On 2016/03/07 11:49:17, Henrik Grunell wrote: > Another thing, make sure that you test thoroughly ...
4 years, 9 months ago (2016-03-08 17:28:01 UTC) #21
rchtara
https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_input.cc#newcode52 media/audio/pulse/pulse_input.cc:52: void PulseAudioInputStream::UseSystemDefaultInputDeviceCallback( On 2016/03/07 11:37:17, Henrik Grunell wrote: > ...
4 years, 9 months ago (2016-03-08 17:28:17 UTC) #22
Henrik Grunell
Some comments on input code applies to output as well. https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_input.cc#newcode52 ...
4 years, 9 months ago (2016-03-09 00:49:17 UTC) #23
rchtara
Could you please have a look have a look to this patch? Thanks a lot ...
4 years, 9 months ago (2016-03-09 16:16:10 UTC) #24
Henrik Grunell
https://codereview.chromium.org/1711823004/diff/180001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/1711823004/diff/180001/media/audio/pulse/pulse_input.cc#newcode13 media/audio/pulse/pulse_input.cc:13: namespace { Put the anonymous namespace inside the media ...
4 years, 9 months ago (2016-03-10 00:57:07 UTC) #25
rchtara
Could you have a look please to the patch again? Thanks a lot Riadh https://codereview.chromium.org/1711823004/diff/180001/media/audio/pulse/pulse_input.cc ...
4 years, 9 months ago (2016-03-10 13:20:35 UTC) #26
Henrik Grunell
Thanks for addressing all comments patiently. Getting closer. :) https://codereview.chromium.org/1711823004/diff/180001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/1711823004/diff/180001/media/audio/pulse/pulse_input.cc#newcode237 media/audio/pulse/pulse_input.cc:237: ...
4 years, 9 months ago (2016-03-10 20:07:34 UTC) #27
rchtara
Thanks a lot for the review. could you please have a last look to it? ...
4 years, 9 months ago (2016-03-11 10:13:09 UTC) #28
Henrik Grunell
https://codereview.chromium.org/1711823004/diff/200001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/1711823004/diff/200001/media/audio/pulse/pulse_input.cc#newcode224 media/audio/pulse/pulse_input.cc:224: return pa_mainloop_; On 2016/03/11 10:13:09, rchtara wrote: > PulseAudioInputStream::Open ...
4 years, 9 months ago (2016-03-11 18:54:41 UTC) #29
rchtara
Could please review this patch? https://codereview.chromium.org/1711823004/diff/200001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc (right): https://codereview.chromium.org/1711823004/diff/200001/media/audio/pulse/pulse_input.cc#newcode224 media/audio/pulse/pulse_input.cc:224: return pa_mainloop_; On 2016/03/11 ...
4 years, 9 months ago (2016-03-13 15:12:00 UTC) #30
Henrik Grunell
Just a final change now, or revert of a change I wanted before... https://codereview.chromium.org/1711823004/diff/260001/media/audio/pulse/pulse_input.cc File ...
4 years, 9 months ago (2016-03-14 12:56:57 UTC) #31
rchtara
No worries. Could you please have a look to my last patch? https://codereview.chromium.org/1711823004/diff/260001/media/audio/pulse/pulse_input.cc File media/audio/pulse/pulse_input.cc ...
4 years, 9 months ago (2016-03-14 14:03:02 UTC) #32
Henrik Grunell
lgtm Tommi: ptal.
4 years, 9 months ago (2016-03-14 14:42:33 UTC) #33
rchtara
On 2016/03/14 14:42:33, Henrik Grunell wrote: > lgtm > > Tommi: ptal.
4 years, 9 months ago (2016-03-14 14:50:57 UTC) #34
rchtara
Thanks a lot Henrik for the quick review.
4 years, 9 months ago (2016-03-14 14:51:53 UTC) #35
tommi (sloooow) - chröme
https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc#newcode20 media/audio/pulse/pulse_output.cc:20: #define RETURN_ON_FAILURE(expression, message) \ we try to avoid macros ...
4 years, 9 months ago (2016-03-16 15:21:48 UTC) #36
tommi (sloooow) - chröme
On 2016/03/16 15:21:48, tommi-chromium wrote: > https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc > File media/audio/pulse/pulse_output.cc (right): > > https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc#newcode20 > ...
4 years, 9 months ago (2016-03-16 15:22:25 UTC) #37
rchtara
Thanks a lot for the review. I will have a look tomorrow.
4 years, 9 months ago (2016-03-16 17:32:25 UTC) #38
rchtara
Hi Tommi, Sorry for the delay, I preferred to continue working on my intern project ...
4 years, 9 months ago (2016-03-19 12:07:30 UTC) #39
tommi (sloooow) - chröme
some more comments but almost there. https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc#newcode92 media/audio/pulse/pulse_output.cc:92: WaitForOperationCompletion(pa_mainloop_, operation); On ...
4 years, 9 months ago (2016-03-19 13:44:17 UTC) #40
Henrik Grunell
Tommi, it looks like you commented on a pretty old patch set a few days ...
4 years, 9 months ago (2016-03-21 09:44:18 UTC) #41
Henrik Grunell
https://codereview.chromium.org/1711823004/diff/320001/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc (left): https://codereview.chromium.org/1711823004/diff/320001/media/audio/pulse/pulse_util.cc#oldcode173 media/audio/pulse/pulse_util.cc:173: Keep the empty line after last DCHECK.
4 years, 9 months ago (2016-03-21 09:46:14 UTC) #42
tommi (sloooow) - chröme
On 2016/03/21 09:44:18, Henrik Grunell wrote: > Tommi, it looks like you commented on a ...
4 years, 9 months ago (2016-03-21 09:59:39 UTC) #43
rchtara
https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc#newcode20 media/audio/pulse/pulse_output.cc:20: #define RETURN_ON_FAILURE(expression, message) \ On 2016/03/21 09:44:18, Henrik Grunell ...
4 years, 9 months ago (2016-03-22 16:45:49 UTC) #44
rchtara
I updated the patch, could you guys have look to it. Thanks a lot Riadh
4 years, 9 months ago (2016-03-22 16:55:45 UTC) #45
rchtara
https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc File media/audio/pulse/pulse_output.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc#newcode92 media/audio/pulse/pulse_output.cc:92: WaitForOperationCompletion(pa_mainloop_, operation); So, I created a timer to get ...
4 years, 9 months ago (2016-03-22 16:56:25 UTC) #46
Henrik Grunell
On 2016/03/21 09:59:39, tommi-chromium wrote: > On 2016/03/21 09:44:18, Henrik Grunell wrote: > > Tommi, ...
4 years, 9 months ago (2016-03-23 12:48:04 UTC) #47
Henrik Grunell
On 2016/03/22 16:56:25, rchtara wrote: > https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc > File media/audio/pulse/pulse_output.cc (right): > > https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_output.cc#newcode92 > ...
4 years, 9 months ago (2016-03-23 12:51:07 UTC) #48
Henrik Grunell
https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc (right): https://codereview.chromium.org/1711823004/diff/100001/media/audio/pulse/pulse_util.cc#newcode243 media/audio/pulse/pulse_util.cc:243: // Set sample specifications. On 2016/03/21 09:44:18, Henrik Grunell ...
4 years, 9 months ago (2016-03-23 12:51:27 UTC) #49
Henrik Grunell
Dale (cc), are you familiar with PulseAudio? What's the risk that the blocking time in ...
4 years, 9 months ago (2016-03-23 13:00:30 UTC) #50
DaleCurtis
Pulse unfortunately requires a lot of those blocking operations. I don't think there's anyway around ...
4 years, 9 months ago (2016-03-23 17:46:20 UTC) #52
Henrik Grunell
On 2016/03/23 17:46:20, DaleCurtis wrote: > Pulse unfortunately requires a lot of those blocking operations. ...
4 years, 9 months ago (2016-03-23 18:19:26 UTC) #53
DaleCurtis
Those times are inline with what I saw in the past. In general it's not ...
4 years, 9 months ago (2016-03-23 18:29:52 UTC) #54
Henrik Grunell
On 2016/03/23 18:29:52, DaleCurtis wrote: > Those times are inline with what I saw in ...
4 years, 9 months ago (2016-03-24 08:28:22 UTC) #55
tommi (sloooow) - chröme
lgtm
4 years, 9 months ago (2016-03-24 11:14:37 UTC) #56
rchtara
Thanks a lot guys for the reviews Riadh https://codereview.chromium.org/1711823004/diff/360001/media/audio/pulse/pulse_util.cc File media/audio/pulse/pulse_util.cc (right): https://codereview.chromium.org/1711823004/diff/360001/media/audio/pulse/pulse_util.cc#newcode174 media/audio/pulse/pulse_util.cc:174: DCHECK_NE(device_id, ...
4 years, 9 months ago (2016-03-24 11:47:52 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711823004/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711823004/380001
4 years, 8 months ago (2016-03-30 07:51:11 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/196127)
4 years, 8 months ago (2016-03-30 10:06:23 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1711823004/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1711823004/380001
4 years, 8 months ago (2016-03-30 10:41:19 UTC) #66
commit-bot: I haz the power
Committed patchset #20 (id:380001)
4 years, 8 months ago (2016-03-30 10:45:56 UTC) #68
commit-bot: I haz the power
4 years, 8 months ago (2016-03-30 10:47:30 UTC) #70
Message was sent while issue was closed.
Patchset 20 (id:??) landed as
https://crrev.com/254c78a58a9da3a320c5ce8b1d84c0843fe3b8bc
Cr-Commit-Position: refs/heads/master@{#383945}

Powered by Google App Engine
This is Rietveld 408576698