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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 115413002: Enable platform echo cancellation through the AudioRecord path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 !base::StringToInt(UTF16ToUTF8(input_device_id), &session_id)) { 719 !base::StringToInt(UTF16ToUTF8(input_device_id), &session_id)) {
720 if (input_channels > 0) 720 if (input_channels > 0)
721 DLOG(WARNING) << "createAudioDevice(): request for audio input ignored"; 721 DLOG(WARNING) << "createAudioDevice(): request for audio input ignored";
722 722
723 input_channels = 0; 723 input_channels = 0;
724 } 724 }
725 725
726 media::AudioParameters params( 726 media::AudioParameters params(
727 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, 727 media::AudioParameters::AUDIO_PCM_LOW_LATENCY,
728 layout, input_channels, 728 layout, input_channels,
729 static_cast<int>(sample_rate), 16, buffer_size); 729 static_cast<int>(sample_rate), 16, buffer_size,
730 media::AudioParameters::NO_EFFECTS);
730 731
731 return new RendererWebAudioDeviceImpl(params, callback, session_id); 732 return new RendererWebAudioDeviceImpl(params, callback, session_id);
732 } 733 }
733 734
734 #if defined(OS_ANDROID) 735 #if defined(OS_ANDROID)
735 bool RendererWebKitPlatformSupportImpl::loadAudioResource( 736 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
736 blink::WebAudioBus* destination_bus, const char* audio_file_data, 737 blink::WebAudioBus* destination_bus, const char* audio_file_data,
737 size_t data_size, double sample_rate) { 738 size_t data_size, double sample_rate) {
738 return DecodeAudioFileData(destination_bus, 739 return DecodeAudioFileData(destination_bus,
739 audio_file_data, 740 audio_file_data,
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 return; 1073 return;
1073 QuotaDispatcher::ThreadSpecificInstance( 1074 QuotaDispatcher::ThreadSpecificInstance(
1074 thread_safe_sender_.get(), 1075 thread_safe_sender_.get(),
1075 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1076 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1076 storage_partition, 1077 storage_partition,
1077 static_cast<quota::StorageType>(type), 1078 static_cast<quota::StorageType>(type),
1078 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1079 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1079 } 1080 }
1080 1081
1081 } // namespace content 1082 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_local_audio_track_unittest.cc ('k') | media/audio/alsa/audio_manager_alsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698