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

Issue 367923004: Turn audio ducking on by default on Windows again. (Closed)

Created:
6 years, 5 months ago by tommi (sloooow) - chröme
Modified:
6 years, 5 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, jam, wjia+watch_chromium.org, mcasas+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Turn audio ducking on by default on Windows again. This changes the behavior for opting output devices into ducking so that ducking is only enabled if an input device has already been opened with ducking enabled. Entering the ducking session is now done for local streams as well, including HTMLMediaElement audio rendering. This allows the communication application to also play back unducked ambient sounds. On the browser side, when we open the default communication device(s) (input and output), we now initialize them into a session that is separate from other audio. This makes it much easier to observe, control and troubleshoot what is happening during a comm session. It also fixes a problem whereby opening up an output communications device before opening up an input communications device would cause the output device to get ducked for some reason (and not opted out of ducking). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281814

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Only turn on ducking for output if an input stream already has it enabled. #

Patch Set 4 : Rebased on the cl that disables ducking #

Patch Set 5 : Update documentation and clean up logging #

Patch Set 6 : Rebase, update tests, logging and documentation #

Total comments: 10

Patch Set 7 : Address comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -87 lines) Patch
M content/renderer/media/media_stream_audio_processor_options.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/media/media_stream_audio_processor_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.h View 2 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.cc View 1 2 3 4 5 6 5 chunks +20 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher_unittest.cc View 1 2 3 4 5 6 2 chunks +63 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/media/webrtc_audio_renderer.cc View 1 2 3 4 5 3 chunks +20 lines, -11 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_renderer.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 1 comment Download
M content/renderer/media/webrtc_local_audio_renderer.cc View 1 2 3 4 5 6 5 chunks +61 lines, -42 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M media/audio/win/audio_low_latency_input_win.cc View 1 2 3 4 5 4 chunks +17 lines, -7 lines 0 comments Download
M media/audio/win/audio_low_latency_output_win.cc View 1 2 3 4 5 6 5 chunks +15 lines, -3 lines 0 comments Download
M media/audio/win/core_audio_util_win.h View 1 2 3 4 5 6 2 chunks +13 lines, -1 line 0 comments Download
M media/audio/win/core_audio_util_win.cc View 1 2 3 4 5 6 3 chunks +10 lines, -5 lines 2 comments Download
M media/audio/win/core_audio_util_win_unittest.cc View 1 2 3 4 5 6 7 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
tommi (sloooow) - chröme
rebase
6 years, 5 months ago (2014-07-03 14:51:16 UTC) #1
tommi (sloooow) - chröme
Only turn on ducking for output if an input stream already has it enabled.
6 years, 5 months ago (2014-07-04 12:16:13 UTC) #2
tommi (sloooow) - chröme
Rebased on the cl that disables ducking
6 years, 5 months ago (2014-07-04 12:24:42 UTC) #3
tommi (sloooow) - chröme
Update documentation and clean up logging
6 years, 5 months ago (2014-07-04 12:46:04 UTC) #4
tommi (sloooow) - chröme
Rebase, update tests, logging and documentation
6 years, 5 months ago (2014-07-07 10:57:59 UTC) #5
tommi (sloooow) - chröme
Turn audio ducking on by default on Windows again. This changes the behavior for opting ...
6 years, 5 months ago (2014-07-07 11:04:59 UTC) #6
no longer working on chromium
https://codereview.chromium.org/367923004/diff/90001/content/renderer/media/media_stream_dispatcher.cc File content/renderer/media/media_stream_dispatcher.cc (right): https://codereview.chromium.org/367923004/diff/90001/content/renderer/media/media_stream_dispatcher.cc#newcode420 content/renderer/media/media_stream_dispatcher.cc:420: if (device_it->device.input.effects && media::AudioParameters::DUCKING) should it be & instead ...
6 years, 5 months ago (2014-07-08 10:42:35 UTC) #7
tommi (sloooow) - chröme
Address comments
6 years, 5 months ago (2014-07-08 12:29:58 UTC) #8
tommi (sloooow) - chröme
All done. Ptal https://codereview.chromium.org/367923004/diff/90001/content/renderer/media/media_stream_dispatcher.cc File content/renderer/media/media_stream_dispatcher.cc (right): https://codereview.chromium.org/367923004/diff/90001/content/renderer/media/media_stream_dispatcher.cc#newcode420 content/renderer/media/media_stream_dispatcher.cc:420: if (device_it->device.input.effects && media::AudioParameters::DUCKING) On 2014/07/08 ...
6 years, 5 months ago (2014-07-08 12:30:56 UTC) #9
no longer working on chromium
Great work! lgtm https://codereview.chromium.org/367923004/diff/110001/content/renderer/media/webrtc_local_audio_renderer.h File content/renderer/media/webrtc_local_audio_renderer.h (right): https://codereview.chromium.org/367923004/diff/110001/content/renderer/media/webrtc_local_audio_renderer.h#newcode138 content/renderer/media/webrtc_local_audio_renderer.h:138: // Must only be touched on ...
6 years, 5 months ago (2014-07-08 12:38:55 UTC) #10
tommi (sloooow) - chröme
The CQ bit was checked by tommi@chromium.org
6 years, 5 months ago (2014-07-08 12:39:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommi@chromium.org/367923004/110001
6 years, 5 months ago (2014-07-08 12:40:08 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-08 14:24:24 UTC) #13
commit-bot: I haz the power
Change committed as 281814
6 years, 5 months ago (2014-07-08 20:21:01 UTC) #14
DaleCurtis
Late drive-by. Thanks for fixing this! https://codereview.chromium.org/367923004/diff/110001/media/audio/win/core_audio_util_win.cc File media/audio/win/core_audio_util_win.cc (right): https://codereview.chromium.org/367923004/diff/110001/media/audio/win/core_audio_util_win.cc#newcode28 media/audio/win/core_audio_util_win.cc:28: const GUID kCommunicationsSessionId ...
6 years, 5 months ago (2014-07-09 21:12:04 UTC) #15
tommi (sloooow) - chröme
6 years, 5 months ago (2014-07-10 02:57:52 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/367923004/diff/110001/media/audio/win/core_au...
File media/audio/win/core_audio_util_win.cc (right):

https://codereview.chromium.org/367923004/diff/110001/media/audio/win/core_au...
media/audio/win/core_audio_util_win.cc:28: const GUID kCommunicationsSessionId =
{
On 2014/07/09 21:12:04, DaleCurtis wrote:
> static const?

I need the constant exported from the object file so I can use it from the input
code as well.

Powered by Google App Engine
This is Rietveld 408576698