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

Unified Diff: media/base/audio_renderer_sink.h

Issue 1487983002: Forward the number of skipped frames by the OS in audio playout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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_sink.h
diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h
index 30cbfef5ae3b82b27375346d90b47f5b5c4ef577..48f36331e3fc094fe2353d7bae7d9f299171c149 100644
--- a/media/base/audio_renderer_sink.h
+++ b/media/base/audio_renderer_sink.h
@@ -41,6 +41,10 @@ class AudioRendererSink
// Signals an error has occurred.
virtual void OnRenderError() = 0;
+ // Signals that the consumer has skipped frames in playout.
DaleCurtis 2015/12/01 18:12:46 Why a new method instead of rolling this into the
Henrik Grunell 2015/12/03 17:01:07 I had some reason that I don't recall or can figur
+ // TODO BEFORE COMMIT: Pure virtual.
+ virtual void OnFramesSkipped(uint32_t frames_skipped){};
+
protected:
virtual ~RenderCallback() {}
};
« media/audio/audio_output_device.cc ('K') | « media/audio/sounds/audio_stream_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698