Chromium Code Reviews
DescriptionLooking up device id by session id for AudioRendererMixerInput
This is required for being able to correctly mix in WebRtc audio in case
of unified streams, when session id is used to specify output device
matching an open input device.
1) Modifications to AudioRendererHost and AudioOutputDevice to retrieve
the matched device id in OnRequestDeviceAuthorization()/OnDeviceAuthorized()
-- This is only manually tested so far. I tried to come up with a neat unit
test but AudioRendererHost is lacking mocks (uses "for test" settings of
its dependencies instead) so I got lost there. As much as I want to have the
unit test in place, I would prefer to not spend any more time on this now.
The change is pretty straight forward. Please let me know if you think
the unit test is a must-have.
2) AudioRendereMixer key (in AudioRendererMixerManager) is modified
to take into account default device specifics.
BUG=587457
Committed: https://crrev.com/121c63d12d10be3dab0ebb032595f2bea95c42c8
Cr-Commit-Position: refs/heads/master@{#386652}
Patch Set 1 #
Total comments: 46
Patch Set 2 : Rebased with respect to OutputDevice->OutputDeviceInfo change, fixed AOD race, addressed review com… #
Total comments: 4
Patch Set 3 : addressing guidou@'s comments #
Total comments: 1
Patch Set 4 : removing string copying #Patch Set 5 : Switch to use AudioDeviceFactory::GetOutputDevice() in AudioRendererMixerManager; AudioDeviceFactor… #
Total comments: 6
Patch Set 6 : tommi's comments addressed #
Total comments: 1
Patch Set 7 : comment and bug ref to remove AudioManagerBase dependency #Messages
Total messages: 33 (9 generated)
|