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

Unified Diff: content/browser/renderer_host/media/audio_input_device_manager.cc

Issue 2258143002: Add GetAssociatedOutputDeviceID support to pulse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded pulse signatures. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/audio_input_device_manager.cc
diff --git a/content/browser/renderer_host/media/audio_input_device_manager.cc b/content/browser/renderer_host/media/audio_input_device_manager.cc
index ffdfe2aa9ff19281dd779c621d34cbee794fa589..a4a2c126f6a8d15ab2c0e7d944ad458d35dabc03 100644
--- a/content/browser/renderer_host/media/audio_input_device_manager.cc
+++ b/content/browser/renderer_host/media/audio_input_device_manager.cc
@@ -180,6 +180,12 @@ void AudioInputDeviceManager::EnumerateOnDeviceThread(
devices->push_back(StreamDeviceInfo(
stream_type, it->device_name, it->unique_id));
}
+ for (StreamDeviceInfo& device_info : *devices) {
+ if (IsAudioInputMediaType(device_info.device.type)) {
+ device_info.device.matched_output_device_id =
+ audio_manager_->GetAssociatedOutputDeviceID(device_info.device.id);
+ }
+ }
// Return the device list through the listener by posting a task on
// IO thread since MediaStreamManager handles the callback asynchronously.
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_manager.cc » ('j') | media/audio/pulse/audio_manager_pulse.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698