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

Unified Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 1314803003: Include default communication devices in audio device enumerations. This removes heuristic that pic… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comment Created 5 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/renderer/media/media_stream_dispatcher.cc
diff --git a/content/renderer/media/media_stream_dispatcher.cc b/content/renderer/media/media_stream_dispatcher.cc
index 361a4ceae92ddde18b8dc8a8a585454194f70eb9..c5123f182942e0256327800f0cc29a6c5e9c566f 100644
--- a/content/renderer/media/media_stream_dispatcher.cc
+++ b/content/renderer/media/media_stream_dispatcher.cc
@@ -403,19 +403,4 @@ int MediaStreamDispatcher::video_session_id(const std::string& label,
return it->second.video_array[index].session_id;
}
-bool MediaStreamDispatcher::IsAudioDuckingActive() const {
- DCHECK(thread_checker_.CalledOnValidThread());
- LabelStreamMap::const_iterator stream_it = label_stream_map_.begin();
- while (stream_it != label_stream_map_.end()) {
- const StreamDeviceInfoArray& audio_array = stream_it->second.audio_array;
- for (StreamDeviceInfoArray::const_iterator device_it = audio_array.begin();
- device_it != audio_array.end(); ++device_it) {
- if (device_it->device.input.effects & media::AudioParameters::DUCKING)
- return true;
- }
- ++stream_it;
- }
- return false;
-}
-
} // namespace content
« no previous file with comments | « content/renderer/media/media_stream_dispatcher.h ('k') | content/renderer/media/media_stream_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698