Chromium Code Reviews| 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..e945f3d1b8db0c3b1cf87551b06fae54ed57d3e5 |
| --- /dev/null |
| +++ b/media/mojo/interfaces/audio_output.mojom |
| @@ -0,0 +1,28 @@ |
| +// 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.interfaces; |
|
mcasas
2016/04/29 17:14:11
It's customary to call these modules
module media
xhwang
2016/04/29 17:16:24
We already have a bug for this:
https://bugs.chrom
xhwang
2016/04/29 17:47:56
Actually feel free to use media.mojom for new inte
rchtara
2016/05/02 15:54:11
Done.
rchtara
2016/05/02 15:54:11
Done.
rchtara
2016/05/02 15:54:11
Done.
|
| + |
| +import "media/mojo/interfaces/media_types.mojom"; |
| + |
| +// This interface handles audio output stream operations. It will be used by |
| +// the AudioOutputClient in the renderer to perform operations on |
| +// AudioOutputStreamImpl in the browser. |
|
xhwang
2016/04/29 17:47:56
It's still odd that you create this stream, doing
xhwang
2016/04/29 17:47:56
Please document what this interface does instead o
rchtara
2016/05/02 15:54:10
yes, we are going to add play, pause, setvolume
rchtara
2016/05/02 15:54:11
Done.
|
| +interface AudioOutputStream { |
| + Close(); |
| +}; |
| + |
| +// This interface manages audio output streams. It will be used by |
| +// the AudioOutputClient in the renderer to perform operations on |
| +// AudioOutputImpl in the browser. |
|
xhwang
2016/04/29 17:47:56
Please document what this interface does instead o
rchtara
2016/05/02 15:54:11
Done.
|
| +interface AudioOutput { |
| + CreateStream( |
| + int32 stream_id, |
| + int32 render_frame_id, |
|
xhwang
2016/04/29 17:47:56
This still looks wrong; media should not know abou
rchtara
2016/05/02 15:54:11
Done.
rchtara
2016/05/04 08:38:43
we are going to move the interface to the content
|
| + AudioOutputStreamParameters params) => |
| + (int32 stream_id, |
| + AudioOutputStream? stream, |
| + handle<shared_buffer>? shared_buffer, |
| + handle? socket_descriptor); |
| +}; |