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

Unified Diff: content/common/media/audio_messages.h

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright years 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
« no previous file with comments | « content/common/DEPS ('k') | content/common/media/audio_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/audio_messages.h
diff --git a/content/common/media/audio_messages.h b/content/common/media/audio_messages.h
index 03d73a9399b9c1d0b356e058d7004daaec492d75..bac2537eb13d9d2abb9ed7d3d0b1269ff5059287 100644
--- a/content/common/media/audio_messages.h
+++ b/content/common/media/audio_messages.h
@@ -9,6 +9,7 @@
#include "base/shared_memory.h"
#include "base/sync_socket.h"
#include "content/common/content_export.h"
+#include "content/common/media/audio_param_traits.h"
#include "content/common/media/audio_stream_state.h"
#include "ipc/ipc_message_macros.h"
#include "media/audio/audio_buffers_state.h"
@@ -19,23 +20,12 @@
#define IPC_MESSAGE_START AudioMsgStart
IPC_ENUM_TRAITS(AudioStreamState)
-IPC_ENUM_TRAITS(AudioParameters::Format)
-IPC_ENUM_TRAITS(ChannelLayout)
IPC_STRUCT_TRAITS_BEGIN(AudioBuffersState)
IPC_STRUCT_TRAITS_MEMBER(pending_bytes)
IPC_STRUCT_TRAITS_MEMBER(hardware_delay_bytes)
IPC_STRUCT_TRAITS_END()
-IPC_STRUCT_TRAITS_BEGIN(AudioParameters)
- IPC_STRUCT_TRAITS_MEMBER(format)
- IPC_STRUCT_TRAITS_MEMBER(channel_layout)
- IPC_STRUCT_TRAITS_MEMBER(sample_rate)
- IPC_STRUCT_TRAITS_MEMBER(bits_per_sample)
- IPC_STRUCT_TRAITS_MEMBER(samples_per_packet)
- IPC_STRUCT_TRAITS_MEMBER(channels)
-IPC_STRUCT_TRAITS_END()
-
// Messages sent from the browser to the renderer.
// Tell the renderer process that an audio stream has been created.
« no previous file with comments | « content/common/DEPS ('k') | content/common/media/audio_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698