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

Unified Diff: chromeos/audio/cras_audio_handler.cc

Issue 2634263002: Pass camera facing info to audio client (Closed)
Patch Set: Pass VideoCaptureObserver as ctor parameter Created 3 years, 11 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: chromeos/audio/cras_audio_handler.cc
diff --git a/chromeos/audio/cras_audio_handler.cc b/chromeos/audio/cras_audio_handler.cc
index 6f34b66fa6193225d9973d0ecbc3aaede5d8c556..de0f3f724b647f40160c9ac583f91696e7811a14 100644
--- a/chromeos/audio/cras_audio_handler.cc
+++ b/chromeos/audio/cras_audio_handler.cc
@@ -126,6 +126,14 @@ CrasAudioHandler* CrasAudioHandler::Get() {
return g_cras_audio_handler;
}
+void CrasAudioHandler::OnVideoCaptureStarted(component::VideoFacingMode facing) {
+ // TODO(jennyz): Switch active audio device according to video facing.
+}
+
+void CrasAudioHandler::OnVideoCaptureStopped(component::VideoFacingMode facing) {
+ // TODO(jennyz): Switch active audio device according to video facing.
+}
+
void CrasAudioHandler::AddAudioObserver(AudioObserver* observer) {
observers_.AddObserver(observer);
}

Powered by Google App Engine
This is Rietveld 408576698