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

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

Issue 2268253002: UMA stats for browser/renderer audio rendering buffer size mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: passing latency info to browser Created 4 years, 4 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 ee15a42006f68f3142c02edebb0ca284a24961ef..fbf96ea25aa6874dc6387bc23c647e998011a52f 100644
--- a/content/renderer/media/audio_device_factory.h
+++ b/content/renderer/media/audio_device_factory.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
+#include "media/base/audio_latency.h"
#include "media/base/output_device_info.h"
namespace media {
@@ -48,6 +49,9 @@ class CONTENT_EXPORT AudioDeviceFactory {
kSourceLast = kSourceWebAudioExact // Only used for validation of format.
};
+ static media::AudioLatency::LatencyType GetSourceLatencyType(
+ SourceType source);
+
// Creates a sink for AudioRendererMixer.
// |render_frame_id| refers to the RenderFrame containing the entity
// producing the audio. If |session_id| is nonzero, it is used by the browser
« no previous file with comments | « no previous file | content/renderer/media/audio_device_factory.cc » ('j') | media/audio/audio_output_resampler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698