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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

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/browser/renderer_host/render_message_filter.h ('k') | content/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index a322366b179eeb777b6c4ee2ba31900176330e05..0684b0ffe77e6c5e71c9089403cfcb020a1b142e 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -380,8 +380,8 @@ bool RenderMessageFilter::OnMessageReceived(const IPC::Message& message,
OnGetHardwareInputSampleRate)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareSampleRate,
OnGetHardwareSampleRate)
- IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputChannelCount,
- OnGetHardwareInputChannelCount)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputChannelLayout,
+ OnGetHardwareInputChannelLayout)
IPC_MESSAGE_HANDLER(ViewHostMsg_MediaLogEvent, OnMediaLogEvent)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -680,20 +680,21 @@ void RenderMessageFilter::OnGetHardwareBufferSize(uint32* buffer_size) {
*buffer_size = static_cast<uint32>(media::GetAudioHardwareBufferSize());
}
-void RenderMessageFilter::OnGetHardwareInputSampleRate(double* sample_rate) {
+void RenderMessageFilter::OnGetHardwareInputSampleRate(int* sample_rate) {
// TODO(henrika): add support for all available input devices.
*sample_rate = media::GetAudioInputHardwareSampleRate(
AudioManagerBase::kDefaultDeviceId);
}
-void RenderMessageFilter::OnGetHardwareSampleRate(double* sample_rate) {
+void RenderMessageFilter::OnGetHardwareSampleRate(int* sample_rate) {
*sample_rate = media::GetAudioHardwareSampleRate();
}
-void RenderMessageFilter::OnGetHardwareInputChannelCount(uint32* channels) {
+void RenderMessageFilter::OnGetHardwareInputChannelLayout(
+ ChannelLayout* layout) {
// TODO(henrika): add support for all available input devices.
- *channels = static_cast<uint32>(media::GetAudioInputHardwareChannelCount(
- AudioManagerBase::kDefaultDeviceId));
+ *layout = media::GetAudioInputHardwareChannelLayout(
+ AudioManagerBase::kDefaultDeviceId);
}
void RenderMessageFilter::OnDownloadUrl(const IPC::Message& message,
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698