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

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

Issue 2067863003: Mixing audio with different latency requirements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing bot redness Created 4 years, 6 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/audio_device_factory.h
diff --git a/content/renderer/media/audio_device_factory.h b/content/renderer/media/audio_device_factory.h
index a8b8cb8b3356575e9e6e559ace510baa2429d3f6..66936892b0bbbb90d0556b0d615e5c492eaea2a1 100644
--- a/content/renderer/media/audio_device_factory.h
+++ b/content/renderer/media/audio_device_factory.h
@@ -32,14 +32,20 @@ namespace content {
// AudioCapturerSourceFactory.
class CONTENT_EXPORT AudioDeviceFactory {
public:
- // Types of audio sources.
+ // Types of audio sources. Each source can have individual mixing and/or
+ // latency requirements for output. The source is specified by the client when
+ // requesting output sink from the factory, and the factory creates the output
+ // sink basing on those requirements.
enum SourceType {
kSourceNone = 0,
kSourceMediaElement,
kSourceWebRtc,
kSourceNonRtcAudioTrack,
- kSourceWebAudio,
- kSourceLast = kSourceWebAudio // Only used for validation of format.
+ kSourceWebAudioInteractive,
+ kSourceWebAudioBalanced,
+ kSourceWebAudioPlayback,
+ kSourceWebAudioExact,
+ kSourceLast = kSourceWebAudioExact // Only used for validation of format.
};
// Creates a sink for AudioRendererMixer.
« no previous file with comments | « no previous file | content/renderer/media/audio_device_factory.cc » ('j') | content/renderer/media/audio_renderer_mixer_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698