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

Unified Diff: media/base/audio_renderer_mixer_pool.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_pool.h
diff --git a/media/base/audio_renderer_mixer_pool.h b/media/base/audio_renderer_mixer_pool.h
index e6ee9f006ed6b2f1f1bf8d5d99195a198c56a863..a26bf338f33c9a012d7b001a8e702e7c8927f3ca 100644
--- a/media/base/audio_renderer_mixer_pool.h
+++ b/media/base/audio_renderer_mixer_pool.h
@@ -7,6 +7,7 @@
#include <string>
+#include "media/base/audio_latency.h"
#include "media/base/output_device_info.h"
namespace url {
@@ -29,16 +30,14 @@ class MEDIA_EXPORT AudioRendererMixerPool {
// ReturnMixer().
virtual AudioRendererMixer* GetMixer(int owner_id,
const AudioParameters& params,
+ AudioLatency::LatencyType latency,
const std::string& device_id,
const url::Origin& security_origin,
OutputDeviceStatus* device_status) = 0;
// Returns mixer back to the pool, must be called when the mixer is not needed
// any more to avoid memory leakage.
- virtual void ReturnMixer(int owner_id,
- const AudioParameters& params,
- const std::string& device_id,
- const url::Origin& security_origin) = 0;
+ virtual void ReturnMixer(AudioRendererMixer* mixer) = 0;
// Returns output device information
virtual OutputDeviceInfo GetOutputDeviceInfo(

Powered by Google App Engine
This is Rietveld 408576698