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

Unified Diff: content/browser/media/capture/audio_mirroring_manager.h

Issue 1839723002: Experimental: Unmute Audio During Tab Sourced Desktop Share (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Loopback Sink (Rebased) Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/media/capture/audio_mirroring_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/capture/audio_mirroring_manager.h
diff --git a/content/browser/media/capture/audio_mirroring_manager.h b/content/browser/media/capture/audio_mirroring_manager.h
index a624a0824befa013d4868d12a3c75f50ac8417f6..fd91d2084248f405d9bfed1afe303decf957665e 100644
--- a/content/browser/media/capture/audio_mirroring_manager.h
+++ b/content/browser/media/capture/audio_mirroring_manager.h
@@ -32,6 +32,7 @@
#ifndef CONTENT_BROWSER_MEDIA_CAPTURE_AUDIO_MIRRORING_MANAGER_H_
#define CONTENT_BROWSER_MEDIA_CAPTURE_AUDIO_MIRRORING_MANAGER_H_
+#include <map>
#include <set>
#include <utility>
#include <vector>
@@ -41,6 +42,7 @@
#include "base/threading/thread_checker.h"
#include "content/common/content_export.h"
#include "media/audio/audio_source_diverter.h"
+#include "media/audio/virtual_audio_output_stream.h"
namespace media {
class AudioOutputStream;
@@ -79,6 +81,11 @@ class CONTENT_EXPORT AudioMirroringManager {
virtual media::AudioOutputStream* AddInput(
const media::AudioParameters& params) = 0;
+ virtual media::AudioPushSink* AddPushInput(
+ const media::AudioParameters& params) = 0;
+
+ virtual bool IsDuplication() = 0;
+
protected:
virtual ~MirroringDestination() {}
};
@@ -120,6 +127,8 @@ class CONTENT_EXPORT AudioMirroringManager {
// destination.
MirroringDestination* destination;
+ std::map<MirroringDestination*, media::AudioPushSink*> dup_destinations;
+
StreamRoutingState(const SourceFrameRef& source_frame,
Diverter* stream_diverter);
StreamRoutingState(const StreamRoutingState& other);
@@ -143,6 +152,10 @@ class CONTENT_EXPORT AudioMirroringManager {
bool add_only,
const std::set<SourceFrameRef>& matches);
+ void UpdateRoutesToDupDestination(MirroringDestination* destination,
+ bool add_only,
+ const std::set<SourceFrameRef>& matches);
+
// Starts diverting audio to the |new_destination|, if not NULL. Otherwise,
// stops diverting audio.
static void ChangeRoute(StreamRoutingState* route,
« no previous file with comments | « no previous file | content/browser/media/capture/audio_mirroring_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698