|
Getting rid of OutputDevice interface, moving SwitchOutputDevice() to AudioRendererSink and MediaStreamAudioRenderer interfaces.
1) OutputDevice interface eliminated;
2) OutputDeviceInfo data structure introduced; besides output parameters and device status, it provides device ID information now (at this stage it's useful for unit tests only, but it will also be used for session ID -> device ID mapping in the upcoming CL).
3) AudioRendererSink::GetOutputDevice() is replaced with AudioRendererSink::GetOutputDeviceInfo(), which returns a snapshot of output device information.
3) SwitchOutputDevice() method added to MediaStreamAudioRenderer;
4) SwitchOutputDevice() method added to AudioRendererSink;
5) Mocks and unit tests cleaned up; sink_for_testing_ is removed from AudioRendererMixerManager, mock AudioDeviceFactory is used instead to instantiate sinks for its testing;
6) AudioRendererMixer is dependent on AudioOutputDevice no more; from now on AudioOutputDevice is visible to upper layers as AudioRendererSink only;
7) AudioOutputDevice is the only sink which implements GetOutputDeviceInfo(), all the other sinks redirect the call to their bottom layer.
See bug description for mode details and a link to doc with pictures (a bit outdated since Patchset 5 which eliminated OutputDevice interface).
BUG= 595727, 506507
Committed: https://crrev.com/68b69396916a10dbace194d871c854302bd98347
Cr-Commit-Position: refs/heads/master@{#384550}
Total comments: 15
Total comments: 8
Total comments: 21
Total comments: 38
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+621 lines, -705 lines) |
Patch |
|
M |
content/browser/renderer_host/media/audio_renderer_host.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
|
M |
content/public/renderer/media_stream_audio_renderer.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+20 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_device_factory.h
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+33 lines, -29 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_device_factory.cc
|
View
|
1
2
3
4
5
6
|
7 chunks |
+46 lines, -35 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_renderer_mixer_manager.h
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -14 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_renderer_mixer_manager.cc
|
View
|
1
2
3
4
|
5 chunks |
+8 lines, -46 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/audio_renderer_mixer_manager_unittest.cc
|
View
|
1
2
3
4
5
6
|
12 chunks |
+97 lines, -62 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/track_audio_renderer.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/track_audio_renderer.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+29 lines, -43 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webmediaplayer_ms.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_capturer.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_renderer.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_renderer.cc
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+25 lines, -29 lines |
0 comments
|
Download
|
|
M |
content/renderer/media/webrtc_audio_renderer_unittest.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+58 lines, -84 lines |
0 comments
|
Download
|
|
M |
content/renderer/render_frame_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_device.h
|
View
|
1
2
3
4
5
|
4 chunks |
+3 lines, -13 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_device.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -19 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_output_ipc.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/audio/audio_output_stream_sink.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/audio/audio_output_stream_sink.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_parameters.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/audio_parameters.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/audio/clockless_audio_sink.h
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/clockless_audio_sink.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/audio/null_audio_sink.h
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/audio/null_audio_sink.cc
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_mixer.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_mixer.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_mixer_input.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+5 lines, -20 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_mixer_input.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+3 lines, -21 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_mixer_input_unittest.cc
|
View
|
1
2
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_mixer_unittest.cc
|
View
|
1
2
|
3 chunks |
+1 line, -8 lines |
0 comments
|
Download
|
|
M |
media/base/audio_renderer_sink.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+23 lines, -16 lines |
0 comments
|
Download
|
|
M |
media/base/fake_audio_renderer_sink.h
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/base/fake_audio_renderer_sink.cc
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -5 lines |
0 comments
|
Download
|
|
M |
media/base/fake_output_device.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -35 lines |
0 comments
|
Download
|
|
M |
media/base/fake_output_device.cc
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -36 lines |
0 comments
|
Download
|
|
M |
media/base/mock_audio_renderer_sink.h
|
View
|
1
2
3
4
5
6
|
2 chunks |
+12 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/base/mock_audio_renderer_sink.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+29 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/base/output_device.h
|
View
|
1
2
3
4
|
1 chunk |
+0 lines, -67 lines |
0 comments
|
Download
|
|
A |
media/base/output_device_info.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
|
A |
media/base/output_device_info.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/blink/webaudiosourceprovider_impl.h
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/blink/webaudiosourceprovider_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/blink/webmediaplayer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
|
M |
media/blink/webmediaplayer_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/blink/webmediaplayer_params.h
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
media/blink/webmediaplayer_params.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/blink/webmediaplayer_util.h
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
media/blink/webmediaplayer_util.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
media/media.gyp
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 53 (20 generated)
|