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

Unified Diff: media/base/audio_renderer_mixer_input.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: media/base/audio_renderer_mixer_input.h
diff --git a/media/base/audio_renderer_mixer_input.h b/media/base/audio_renderer_mixer_input.h
index bc87d224017450b8abfd9fbf7821282b7eb078cd..ec8eb2f6a9f6fd0da973264daa9829a6d207dd8f 100644
--- a/media/base/audio_renderer_mixer_input.h
+++ b/media/base/audio_renderer_mixer_input.h
@@ -22,6 +22,7 @@
#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "media/base/audio_converter.h"
+#include "media/base/audio_latency.h"
#include "media/base/audio_renderer_sink.h"
#include "url/origin.h"
@@ -37,7 +38,8 @@ class MEDIA_EXPORT AudioRendererMixerInput
AudioRendererMixerInput(AudioRendererMixerPool* mixer_pool,
int owner_id,
const std::string& device_id,
- const url::Origin& security_origin);
+ const url::Origin& security_origin,
+ AudioLatency::LatencyType latency);
// SwitchableAudioRendererSink implementation.
void Start() override;
@@ -86,6 +88,7 @@ class MEDIA_EXPORT AudioRendererMixerInput
const int owner_id_;
std::string device_id_; // ID of hardware device to use
url::Origin security_origin_;
+ const AudioLatency::LatencyType latency_;
// AudioRendererMixer obtained from mixer pool during Initialize(),
// guaranteed to live (at least) until it is returned to the pool.

Powered by Google App Engine
This is Rietveld 408576698