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

Side by Side Diff: content/common/media/audio_output.mojom

Issue 2319493002: Add mojo interface for audio rendering. (Closed)
Patch Set: ++docs 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 unified diff | Download patch
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 content.mojom;
6
7 import "media/mojo/interfaces/audio_parameters.mojom";
8 import "media/mojo/interfaces/media_types.mojom";
9 import "url/mojo/origin.mojom";
10
11 // On error, the message pipe is closed.
12 // To close the stream, just close the message pipe.
13 interface AudioOutput {
14 Start(media.mojom.AudioParameters params) =>
15 (handle<shared_buffer> shared_buffer,
16 handle socket_descriptor);
17 Play();
18 Pause();
19 // Volume is in the range [0, 1].
20 SetVolume(double volume);
21 };
22
23 interface RendererAudioOutputService {
24 // Used to request a device.
25 // An AudioOutputRequest may be supplied, in which case it will
26 // be bound to an AudioOutput implementation or closed (in case of an error).
27 // TODO better name.
28 RequestDeviceAuthorization(
29 AudioOutput&? audio_output_request,
30 int64 session_id,
31 string device_id,
32 url.mojom.Origin origin) =>
33 (media.mojom.OutputDeviceStatus state,
34 media.mojom.AudioParameters output_params,
35 string matched_device_id);
36 };
OLDNEW
« no previous file with comments | « content/common/media/audio_messages.h ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698