Chromium Code Reviews| OLD | NEW |
|---|---|
| (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) ; | |
|
o1ka
2017/01/25 10:31:06
Today audio rendering is performed synchronously t
| |
| 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 }; | |
| OLD | NEW |