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

Unified Diff: content/test/webrtc_audio_device_test.cc

Issue 9221010: Adds support for 16kHz input sample rate and mono channel config. in WebRTC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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
Index: content/test/webrtc_audio_device_test.cc
diff --git a/content/test/webrtc_audio_device_test.cc b/content/test/webrtc_audio_device_test.cc
index d4ea8b7d71f15fa33162bb27bd7368f0872ecbd2..a5d0ce927393bcd94ce462366861cb207555b0e5 100644
--- a/content/test/webrtc_audio_device_test.cc
+++ b/content/test/webrtc_audio_device_test.cc
@@ -235,6 +235,12 @@ void WebRTCAudioDeviceTest::OnGetHardwareInputSampleRate(double* sample_rate) {
audio_util_callback_->GetAudioInputHardwareSampleRate() : 0.0;
}
+void WebRTCAudioDeviceTest::OnGetHardwareInputChannels(size_t* channels) {
+ EXPECT_TRUE(audio_util_callback_);
+ *channels = audio_util_callback_ ?
+ audio_util_callback_->GetAudioInputHardwareChannels() : 0;
tommi (sloooow) - chröme 2012/01/17 12:01:08 4 spaces
henrika (OOO until Aug 14) 2012/01/17 12:54:59 Done.
+}
+
// IPC::Channel::Listener implementation.
bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) {
if (render_thread_) {
@@ -267,6 +273,8 @@ bool WebRTCAudioDeviceTest::OnMessageReceived(const IPC::Message& message) {
OnGetHardwareSampleRate)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputSampleRate,
OnGetHardwareInputSampleRate)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_GetHardwareInputChannels,
+ OnGetHardwareInputChannels)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()

Powered by Google App Engine
This is Rietveld 408576698