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

Unified Diff: media/audio/audio_parameters.h

Issue 9702019: Adds Analog Gain Control (AGC) to the WebRTC client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added audio_input_stream_impl.h/.cc Created 8 years, 9 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/audio/audio_parameters.h
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index 244d8b9f0fb0cc3b7427ff939847d2b42a78ebb6..f532517ca850158c40c1e4f860f67f6d5250a10b 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -9,6 +9,19 @@
#include "media/base/channel_layout.h"
#include "media/base/media_export.h"
+struct MEDIA_EXPORT AudioInputBufferParameters {
+ double volume;
+ uint32 size;
+};
+
+// Use a struct-in-struct approach to ensure that we can calculate the required
+// size as sizeof(AudioInputBufferParameters) + #(bytes in audio buffer) without
+// using packing.
+struct MEDIA_EXPORT AudioInputBuffer {
+ AudioInputBufferParameters params;
+ int8 audio[1];
+};
+
// TODO(vrk): This should probably be changed to an immutable object instead of
// a struct. See crbug.com/115902.
struct MEDIA_EXPORT AudioParameters {

Powered by Google App Engine
This is Rietveld 408576698