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

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

Issue 2640003002: Implement MojoAudioRendererSink and use it in UtilityMojoMediaClient (Closed)
Patch Set: Rebase 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 | « media/mojo/interfaces/BUILD.gn ('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 2017 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 import "media/mojo/interfaces/output_device_info.mojom";
10 import "mojo/common/time.mojom";
11
12 interface AudioRendererSinkRenderCallback {
13
14 [Sync]
15 Render(mojo.common.mojom.TimeDelta delay,
16 mojo.common.mojom.TimeTicks delay_timestamp,
17 int32 prior_frames_skipped) => (int32 nb_filled_frames, AudioBus? dest) ;
18
19 OnRenderError();
20 };
21
22 interface AudioRendererSink {
23
24 Initialize(AudioParameters params, AudioRendererSinkRenderCallback? render_cal lback);
25 Start();
26 Stop();
27 Pause();
28 Play();
29
30 [Sync]
31 SetVolume(double volume) => (bool success);
32
33 [Sync]
34 GetOutputDeviceInfo() => (OutputDeviceInfo info);
35
36 [Sync]
37 CurrentThreadIsRenderingThread() => (bool is_rendering_thread);
38 };
OLDNEW
« 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