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

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: Improved volume updating on Mac 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..84022bfe82db5133c36cef8b1f46db48701103c3 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -9,6 +9,16 @@
#include "media/base/channel_layout.h"
#include "media/base/media_export.h"
+#pragma pack(push, 1)
tommi (sloooow) - chröme 2012/03/16 13:31:05 Can you add a note why we set the packing to 1? A
henrika (OOO until Aug 14) 2012/03/21 10:16:04 Done.
+struct MEDIA_EXPORT AudioInputBuffer {
+ double volume;
+ uint32 size;
+ int8 audio[1];
+
+ static const int kSizeOfStructMinusArr;
+};
+#pragma pack(pop)
+
// 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