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

Side by Side Diff: mojo/services/media/audio/interfaces/audio_track.mojom

Issue 1986303002: Motown: Use new TimelineTransform and related definitions (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fixes per feedback. Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 [DartPackage="mojo_services"] 5 [DartPackage="mojo_services"]
6 module mojo.media; 6 module mojo.media;
7 7
8 import "mojo/services/media/common/interfaces/media_common.mojom"; 8 import "mojo/services/media/common/interfaces/media_common.mojom";
9 import "mojo/services/media/common/interfaces/media_transport.mojom"; 9 import "mojo/services/media/common/interfaces/media_transport.mojom";
10 import "mojo/services/media/common/interfaces/media_types.mojom"; 10 import "mojo/services/media/common/interfaces/media_types.mojom";
11 import "mojo/services/media/common/interfaces/rate_control.mojom"; 11 import "mojo/services/media/core/interfaces/timeline_controller.mojom";
12 12
13 struct AudioTrackDescriptor { 13 struct AudioTrackDescriptor {
14 // The track supports the union of all these media type sets. 14 // The track supports the union of all these media type sets.
15 array<MediaTypeSet> supported_media_types; 15 array<MediaTypeSet> supported_media_types;
16 }; 16 };
17 17
18 struct AudioTrackConfiguration { 18 struct AudioTrackConfiguration {
19 // The media type to use. 19 // The media type to use.
20 MediaType media_type; 20 MediaType media_type;
21 21
(...skipping 21 matching lines...) Expand all
43 43
44 // The maximum permitted above-unity gain. 44 // The maximum permitted above-unity gain.
45 const float kMaxGain = 20.0; 45 const float kMaxGain = 20.0;
46 46
47 // Get the descriptor. 47 // Get the descriptor.
48 Describe() => (AudioTrackDescriptor descriptor); 48 Describe() => (AudioTrackDescriptor descriptor);
49 49
50 // Set the configuration, receive a pipe to send data to in return. 50 // Set the configuration, receive a pipe to send data to in return.
51 Configure(AudioTrackConfiguration configuration, MediaConsumer& pipe); 51 Configure(AudioTrackConfiguration configuration, MediaConsumer& pipe);
52 52
53 // Request the rate control interface for this AudioTrack 53 // Request the timeline control site for this AudioTrack
54 GetRateControl(RateControl& rate_control); 54 GetTimelineControlSite(MediaTimelineControlSite& timeline_control_site);
55 55
56 // Sets the current gain/attenuation of the track, expressed in dB. Legal 56 // Sets the current gain/attenuation of the track, expressed in dB. Legal
57 // values are in the range [-inf, 20.0]. Any value less than or equal to the 57 // values are in the range [-inf, 20.0]. Any value less than or equal to the
58 // constant kMutedGain will result in the track becoming explicitly muted 58 // constant kMutedGain will result in the track becoming explicitly muted
59 // (regardless of its underlying resolution or intensity). 59 // (regardless of its underlying resolution or intensity).
60 SetGain(float db_gain); 60 SetGain(float db_gain);
61 }; 61 };
OLDNEW
« no previous file with comments | « mojo/dart/packages/mojo_services/lib/mojo/timelines.mojom.dart ('k') | mojo/services/media/common/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698