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

Unified Diff: media/mojo/interfaces/media_types.mojom

Issue 1896883002: Mojo interfaces needed for switching audio rendering stream creation and closing from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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: 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 {

Powered by Google App Engine
This is Rietveld 408576698