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

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: add close 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/common/media_type_converters_unittest.cc ('k') | media/mojo/interfaces/mojo_bindings.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..78ef6ed9081d6cbb0b33070b8402f9a494e3de23 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;
miu 2016/05/05 20:16:39 Drive-by question: Is bits_per_sample really neede
rchtara 2016/05/06 08:57:33 No sure about that: it's set here for example: htt
DaleCurtis 2016/05/06 17:31:19 It's irrelevant, so I'd drop it and just add a DCH
miu 2016/05/06 18:06:21 BTW--I filed a "FixIt/Polish" bug for this (explai
rchtara 2016/05/10 16:04:52 great, I will do that in the second cl.
rchtara 2016/05/10 16:04:52 great
+ 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 {
« no previous file with comments | « media/mojo/common/media_type_converters_unittest.cc ('k') | media/mojo/interfaces/mojo_bindings.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698