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

Unified Diff: content/renderer/media/media_stream_audio_processor.h

Issue 1647773002: MediaStream audio sourcing: Bypass audio processing for non-WebRTC cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOT FOR REVIEW -- This will be broken-up across multiple CLs. Created 4 years, 10 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_audio_processor.h
diff --git a/content/renderer/media/media_stream_audio_processor.h b/content/renderer/media/media_stream_audio_processor.h
index 478b5940cfed77475792b1cedb0d4033eb65dde5..6eb5efd35b93529b035b465651b17d7d9dee2117 100644
--- a/content/renderer/media/media_stream_audio_processor.h
+++ b/content/renderer/media/media_stream_audio_processor.h
@@ -110,6 +110,15 @@ class CONTENT_EXPORT MediaStreamAudioProcessor :
void OnDisableAecDump() override;
void OnIpcClosing() override;
+ // Returns true if there are constraints or effects flags set to indicate that
+ // audio needs to be processed by MediaStreamAudioProcessor. Returns false if
+ // audio data should be directly delivered, unmodified, to all media stream
+ // sinks. See media::AudioParameters::PlatformEffectsMask for interpretation
+ // of |effects_flags|.
+ static bool ShouldRouteAudioThroughProcessor(
+ const blink::WebMediaConstraints& constraints,
+ int effects_flags);
+
protected:
~MediaStreamAudioProcessor() override;
« no previous file with comments | « content/renderer/media/media_stream_audio_level_calculator.cc ('k') | content/renderer/media/media_stream_audio_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698