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

Unified Diff: media/base/audio_renderer_sink.cc

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added implementation for ALSA. Created 4 years, 5 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_sink.cc
diff --git a/media/base/audio_renderer_sink.cc b/media/base/audio_renderer_sink.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1ad2a87a1b524d05b053295e3d756b5866265227
--- /dev/null
+++ b/media/base/audio_renderer_sink.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "media/base/audio_renderer_sink.h"
+
+namespace media {
+
+int AudioRendererSink::RenderCallback::Render(AudioBus* dest,
+ uint32_t audio_delay_milliseconds,
+ uint32_t frames_skipped) {
+ return 0;
+}
+
+int AudioRendererSink::RenderCallback::Render(
+ AudioBus* dest,
+ uint32_t audio_delay_milliseconds,
+ uint32_t frames_skipped,
+ const AudioTimestamp& output_timestamp) {
+ return Render(dest, audio_delay_milliseconds, frames_skipped);
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698