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

Unified Diff: media/audio/audio_parameters.h

Issue 526113002: AudioSharedBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | 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 03fe043dfadd53e4ae4bf75edc1e9ce5eeadcacf..cad7c8f651a6a4bef79734d6357f5d30eb00eb90 100644
--- a/media/audio/audio_parameters.h
+++ b/media/audio/audio_parameters.h
@@ -26,6 +26,13 @@ struct MEDIA_EXPORT AudioInputBuffer {
int8 audio[1];
};
+// Used for audio buffer exchange in shared memory between processes with
+// buffer_index counting for synchronization without needing to block.
+struct MEDIA_EXPORT AudioSharedBuffer {
+ uint32 buffer_index;
+ int8 audio[1];
+};
+
class MEDIA_EXPORT AudioParameters {
public:
// TODO(miu): Rename this enum to something that correctly reflects its
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698