| Index: media/mojo/interfaces/media_types.mojom
|
| diff --git a/media/mojo/interfaces/media_types.mojom b/media/mojo/interfaces/media_types.mojom
|
| index 2c8a39c21c170cfc2570eafb9424121c1c8f12b3..7526a4dc1abd76dc7ad3a920ad3e2bc57cf63a48 100644
|
| --- a/media/mojo/interfaces/media_types.mojom
|
| +++ b/media/mojo/interfaces/media_types.mojom
|
| @@ -6,6 +6,15 @@ module media.interfaces;
|
|
|
| import "ui/mojo/geometry/geometry.mojom";
|
|
|
| +// See media/audio/audio_parameters.h for descriptions.
|
| +// Kept in sync with media::AudioParameters::Format via static_asserts.
|
| +enum AudioFormat {
|
| + AUDIO_PCM_LINEAR = 0,
|
| + AUDIO_PCM_LOW_LATENCY,
|
| + AUDIO_FAKE,
|
| + AUDIO_FORMAT_LAST = AUDIO_FAKE,
|
| +};
|
| +
|
| // See media/base/buffering_state.h for descriptions.
|
| // Kept in sync with media::BufferingState via static_asserts.
|
| enum BufferingState {
|
| @@ -185,6 +194,19 @@ enum CipherMode {
|
| MAX = AES_CBC
|
| };
|
|
|
| +// This defines a mojo transport format for media::AudioParameters.
|
| +// See media/base/audio_parameters.h for description.
|
| +struct AudioParameters {
|
| + AudioFormat format;
|
| + ChannelLayout channel_layout;
|
| + int32 channels;
|
| + int32 sample_rate;
|
| + int32 bits_per_sample;
|
| + int32 frames_per_buffer;
|
| + int32 effects;
|
| + // TODO(rchtara): add |mic_positions_| if needed.
|
| +};
|
| +
|
| // This defines a mojo transport format for media::EncryptionScheme::Pattern
|
| // See media/base/encryption_scheme.h for description.
|
| struct Pattern {
|
|
|