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

Unified Diff: media/audio/audio_parameters.h

Issue 1293503002: Check buffer index in shared memory for input audio. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 5 years, 4 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
« media/audio/audio_input_device.cc ('K') | « media/audio/audio_input_device.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_parameters.h
diff --git a/media/audio/audio_parameters.h b/media/audio/audio_parameters.h
index 3820d8cc3c91de2f3f7168d58074d2b25f8a4072..435fb99820a16ca9da13eae8270c1a017eb5782c 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_AUDIO_AUDIO_PARAMETERS_H_
#define MEDIA_AUDIO_AUDIO_PARAMETERS_H_
+#include <stdint.h>
#include <string>
#include "base/basictypes.h"
@@ -17,7 +18,11 @@ namespace media {
struct MEDIA_EXPORT AudioInputBufferParameters {
tommi (sloooow) - chröme 2015/08/14 09:56:21 use #pragma pack if explicit packing is always nec
Henrik Grunell 2015/08/14 12:38:32 As discussed offline, that doesn't work (for gcc a
double volume;
uint32 size;
+ uint32_t hardware_delay_bytes;
+ uint32_t id;
bool key_pressed;
+ uint8_t pad8[3];
DaleCurtis 2015/08/13 22:00:49 ?
+ uint64_t pad64;
};
// Use a struct-in-struct approach to ensure that we can calculate the required
« media/audio/audio_input_device.cc ('K') | « media/audio/audio_input_device.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698