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

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

Issue 1896883002: Mojo interfaces needed for switching audio rendering stream creation and closing from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: render_frame_id Created 4 years, 8 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_output.mojom
diff --git a/media/mojo/interfaces/audio_output.mojom b/media/mojo/interfaces/audio_output.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..4346a6316fe6911293ec03b2e89b915ec41c3494
--- /dev/null
+++ b/media/mojo/interfaces/audio_output.mojom
@@ -0,0 +1,32 @@
+// Copyright 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.
+
+module media.mojom;
+
+import "media/mojo/interfaces/media_types.mojom";
+
+// This interface handles audio output stream operations.
+// It allows to close a stream.
+// TODO(rchtara): Add methods that allow the interaction with audio output
+// streams: Play, Pause and SetVolume to this interface.
+// See crbug.com/606707 for more details.
+interface AudioOutputStream {
+ Close();
+};
+
+// This interface manages audio output streams.
+// It allows to create an AudioOutputStream.
+// TODO(rchtara): Add method to request a device authorization to this
+// interface.
+// See crbug.com/606707 for more details.
+interface AudioOutput {
+ CreateStream(
+ int32 stream_id,
+ int32 render_frame_id,
xhwang 2016/05/03 17:26:13 Media should not know about render frames (which i
DaleCurtis 2016/05/03 21:07:37 media/ can't know about render frames, it's a cont
rchtara 2016/05/04 08:38:43 After discussing with grunell, we think that it's
rchtara 2016/05/04 08:38:43 After discussing with grunell, we think that it's
rchtara 2016/05/05 07:32:10 Another reason for not doing that is that in the c
DaleCurtis 2016/05/05 17:41:57 Do we need the stream id to be sent between the re
rchtara 2016/05/06 07:29:47 If we do so, the id of streams in the log provided
DaleCurtis 2016/05/06 17:31:19 Those stream ids are worthless on the renderer sid
rchtara 2016/05/09 17:22:07 The stream_id is now generated in the renderer in
DaleCurtis 2016/05/09 17:45:03 This doesn't seem correct, IDs are not necessary t
rchtara 2016/05/10 16:04:51 Cool! we are going to remove the stream_ids. After
+ media.interfaces.AudioParameters params) =>
+ (int32 stream_id,
+ AudioOutputStream? stream,
+ handle<shared_buffer>? shared_buffer,
+ handle? socket_descriptor);
+};
« 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