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

Unified Diff: mojo/services/media/audio/interfaces/audio_track.mojom

Issue 2069873003: Motown: Define MediaRenderer and make it the way we identify renderers. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix build break...audio_track_controller.* gone for good. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: mojo/services/media/audio/interfaces/audio_track.mojom
diff --git a/mojo/services/media/audio/interfaces/audio_track.mojom b/mojo/services/media/audio/interfaces/audio_track.mojom
index b5cf8038e1017dd055c591a8e9b2c920d7e4c1eb..6d954b49a3f2d33a426fe1f0ae45c38c21448bb5 100644
--- a/mojo/services/media/audio/interfaces/audio_track.mojom
+++ b/mojo/services/media/audio/interfaces/audio_track.mojom
@@ -5,38 +5,6 @@
[DartPackage="mojo_services"]
module mojo.media;
-import "mojo/services/media/common/interfaces/media_common.mojom";
-import "mojo/services/media/common/interfaces/media_transport.mojom";
-import "mojo/services/media/common/interfaces/media_types.mojom";
-import "mojo/services/media/core/interfaces/timeline_controller.mojom";
-
-struct AudioTrackDescriptor {
- // The track supports the union of all these media type sets.
- array<MediaTypeSet> supported_media_types;
-};
-
-struct AudioTrackConfiguration {
- // The media type to use.
- MediaType media_type;
-
- // Ratio of audio frames to media time ticks.
- //
- // Presentation time stamps on audio packets are expressed in units of media
- // time ticks. Many users will choose to use units of audio frames to express
- // their media time, and can simply leave this ratio at the default of 1:1.
- // For some, however, it may be more convenient to use different units for
- // media time. For example, if the audio frame rate was 48KHz, and the time
- // stamps are expressed in 90KHz units (the units used by MPEG-2 Program
- // Stream timestamps), the ratio should be set to 48000:90000 (aka, 8:15).
- // IOW - audio_frame_ratio would be set to 8 and media_time_ratio would be set
- // to 15.
- //
- // Neither of these values may be 0. A configuration error will occur if they
- // are.
- uint32 audio_frame_ratio = 1;
- uint32 media_time_ratio = 1;
-};
-
interface AudioTrack {
// A special value which will always cause a track to become explicitly muted.
const float kMutedGain = -160.0;
@@ -44,15 +12,6 @@ interface AudioTrack {
// The maximum permitted above-unity gain.
const float kMaxGain = 20.0;
- // Get the descriptor.
- Describe() => (AudioTrackDescriptor descriptor);
-
- // Set the configuration, receive a pipe to send data to in return.
- Configure(AudioTrackConfiguration configuration, MediaConsumer& pipe);
-
- // Request the timeline control site for this AudioTrack
- GetTimelineControlSite(MediaTimelineControlSite& timeline_control_site);
-
// Sets the current gain/attenuation of the track, expressed in dB. Legal
// values are in the range [-inf, 20.0]. Any value less than or equal to the
// constant kMutedGain will result in the track becoming explicitly muted
« no previous file with comments | « mojo/services/media/audio/interfaces/audio_server.mojom ('k') | mojo/services/media/control/interfaces/media_factory.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698