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

Unified Diff: media/mojo/interfaces/audio_renderer_sink.mojom

Issue 2640003002: Implement MojoAudioRendererSink and use it in UtilityMojoMediaClient (Closed)
Patch Set: Rebase Created 3 years, 10 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
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/audio_renderer_sink.mojom
diff --git a/media/mojo/interfaces/audio_renderer_sink.mojom b/media/mojo/interfaces/audio_renderer_sink.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..360224ea102f3675720f80712c5d60fd89c18779
--- /dev/null
+++ b/media/mojo/interfaces/audio_renderer_sink.mojom
@@ -0,0 +1,38 @@
+// Copyright 2017 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.
+
+module media.mojom;
+
+import "media/mojo/interfaces/audio_parameters.mojom";
+import "media/mojo/interfaces/media_types.mojom";
+import "media/mojo/interfaces/output_device_info.mojom";
+import "mojo/common/time.mojom";
+
+interface AudioRendererSinkRenderCallback {
+
+ [Sync]
+ Render(mojo.common.mojom.TimeDelta delay,
+ mojo.common.mojom.TimeTicks delay_timestamp,
+ int32 prior_frames_skipped) => (int32 nb_filled_frames, AudioBus? dest);
+
+ OnRenderError();
+};
+
+interface AudioRendererSink {
+
+ Initialize(AudioParameters params, AudioRendererSinkRenderCallback? render_callback);
+ Start();
+ Stop();
+ Pause();
+ Play();
+
+ [Sync]
+ SetVolume(double volume) => (bool success);
+
+ [Sync]
+ GetOutputDeviceInfo() => (OutputDeviceInfo info);
+
+ [Sync]
+ CurrentThreadIsRenderingThread() => (bool is_rendering_thread);
+};
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698