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

Unified Diff: content/test/webrtc_audio_device_test.cc

Issue 12662038: Revert 187936 "Pass more detailed audio hardware configuration i..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1440/src/
Patch Set: Created 7 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/test/webrtc_audio_device_test.h ('k') | media/audio/audio_output_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/webrtc_audio_device_test.cc
===================================================================
--- content/test/webrtc_audio_device_test.cc (revision 189875)
+++ content/test/webrtc_audio_device_test.cc (working copy)
@@ -16,7 +16,6 @@
#include "content/browser/renderer_host/media/audio_renderer_host.h"
#include "content/browser/renderer_host/media/media_stream_manager.h"
#include "content/browser/renderer_host/media/mock_media_observer.h"
-#include "content/common/media/media_param_traits.h"
#include "content/common/view_messages.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_paths.h"
@@ -28,7 +27,6 @@
#include "content/renderer/render_process.h"
#include "content/renderer/render_thread_impl.h"
#include "content/renderer/renderer_webkitplatformsupport_impl.h"
-#include "media/audio/audio_parameters.h"
#include "media/base/audio_hardware_config.h"
#include "net/url_request/url_request_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -42,8 +40,6 @@
#include "base/win/scoped_com_initializer.h"
#endif
-using media::AudioParameters;
-using media::ChannelLayout;
using testing::_;
using testing::InvokeWithoutArgs;
using testing::Return;
@@ -266,10 +262,16 @@
}
void WebRTCAudioDeviceTest::OnGetAudioHardwareConfig(
- AudioParameters* input_params, AudioParameters* output_params) {
+ int* output_buffer_size, int* output_sample_rate, int* input_sample_rate,
+ media::ChannelLayout* input_channel_layout) {
ASSERT_TRUE(audio_hardware_config_);
- *input_params = audio_hardware_config_->GetInputConfig();
- *output_params = audio_hardware_config_->GetOutputConfig();
+
+ *output_buffer_size = audio_hardware_config_->GetOutputBufferSize();
+ *output_sample_rate = audio_hardware_config_->GetOutputSampleRate();
+
+ // TODO(henrika): add support for all available input devices.
+ *input_sample_rate = audio_hardware_config_->GetInputSampleRate();
+ *input_channel_layout = audio_hardware_config_->GetInputChannelLayout();
}
// IPC::Listener implementation.
« no previous file with comments | « content/test/webrtc_audio_device_test.h ('k') | media/audio/audio_output_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698