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

Side by Side Diff: media/mojo/interfaces/audio_output_stream.mojom

Issue 2697793002: Add mojo interface+impl for audio stream control. (Closed)
Patch Set: . Created 3 years, 9 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 | « media/mojo/interfaces/audio_output.mojom ('k') | media/mojo/interfaces/media_types.mojom » ('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 media.mojom;
6
7 import "media/mojo/interfaces/audio_parameters.mojom";
8 import "media/mojo/interfaces/media_types.mojom";
9
10 // An interface for controlling an audio output stream.
11 // On error, the message pipe is closed.
12 // To close the stream, just close the message pipe.
13 interface AudioOutputStream {
14 // Starts rendering audio.
15 Play();
16
17 // Stops rendering audio and sends a signal to the |socket_descriptor|
18 // indicating this.
19 Pause();
20
21 // Sets volume. Volume must be in the range [0, 1].
22 SetVolume(double volume);
23 };
24
25 interface AudioOutputStreamProvider {
26 // Creates a new AudioOutputStream using |params|. |shared_buffer| and |socket _descriptor| are used to write data to the stream as defined in AudioDeviceThrea d. Can only be called once.
Ken Rockot(use gerrit already) 2017/03/08 17:43:37 Formatting is all weird here. Sorry we don't have
Max Morin 2017/03/09 09:34:28 Oops, I figured "git cl format" would fix this. :)
27 Acquire(AudioOutputStream& output_stream, media.mojom.AudioParameters params) => (handle<shared_buffer> shared_buffer, handle socket_descriptor);
28 };
OLDNEW
« no previous file with comments | « media/mojo/interfaces/audio_output.mojom ('k') | media/mojo/interfaces/media_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698