OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 module media.mojom; | |
xhwang
2016/05/06 16:27:29
This should be in content.mojom now.
rchtara
2016/05/09 15:14:58
Done.
| |
6 | |
7 import "media/mojo/interfaces/media_types.mojom"; | |
8 | |
9 // This interface handles audio output stream operations. | |
10 // It allows to close a stream. | |
11 // TODO(rchtara): Add methods that allow the interaction with audio output | |
12 // streams: Play, Pause and SetVolume to this interface. | |
13 // See crbug.com/606707 for more details. | |
14 interface AudioOutputStream { | |
15 Close(); | |
16 }; | |
17 | |
18 // This interface manages audio output streams. | |
19 // It allows to create an AudioOutputStream. | |
20 // TODO(rchtara): Add method to request a device authorization to this | |
21 // interface. | |
22 // See crbug.com/606707 for more details. | |
23 interface AudioOutput { | |
24 CreateStream( | |
25 int32 stream_id, | |
26 int32 render_frame_id, | |
27 media.interfaces.AudioParameters params) => | |
28 (int32 stream_id, | |
29 AudioOutputStream? stream, | |
30 handle<shared_buffer>? shared_buffer, | |
31 handle? socket_descriptor); | |
32 // Used to close streams which are just authorized but not created yet. | |
33 CloseStream(int32 stream_id); | |
xhwang
2016/05/06 16:27:29
Typically in mojo world when the connection is dro
rchtara
2016/05/09 15:14:58
We were planning to take advantage of that to repo
| |
34 }; | |
OLD | NEW |