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

Unified Diff: media/base/audio_parameters.cc

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: media/base/audio_parameters.cc
diff --git a/media/base/audio_parameters.cc b/media/base/audio_parameters.cc
index c40a7aa0d4094657ae308945580fa2bd9b58ec13..e3f9bb514257707935dbbe3bdbfd7f7ed3c330d5 100644
--- a/media/base/audio_parameters.cc
+++ b/media/base/audio_parameters.cc
@@ -16,7 +16,8 @@ AudioParameters::AudioParameters(Format format,
ChannelLayout channel_layout,
int sample_rate,
int bits_per_sample,
- int frames_per_buffer) {
+ int frames_per_buffer)
+ : latency_tag_(AudioLatency::LATENCY_COUNT) {
Henrik Grunell 2016/08/23 15:53:19 I don't think an invalid value should be used to s
o1ka 2016/08/23 16:20:56 It would be a pain for IPC
Henrik Grunell 2016/08/24 12:47:15 OK. It's still hacky I think to use the count to i
Reset(format, channel_layout, sample_rate, bits_per_sample,
frames_per_buffer);
}

Powered by Google App Engine
This is Rietveld 408576698