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

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

Issue 110303003: Revert 240548 "Enable platform echo cancellation through the Aud..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | Annotate | Revision Log
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);
731 730
732 return new RendererWebAudioDeviceImpl(params, callback, session_id); 731 return new RendererWebAudioDeviceImpl(params, callback, session_id);
733 } 732 }
734 733
735 #if defined(OS_ANDROID) 734 #if defined(OS_ANDROID)
736 bool RendererWebKitPlatformSupportImpl::loadAudioResource( 735 bool RendererWebKitPlatformSupportImpl::loadAudioResource(
737 blink::WebAudioBus* destination_bus, const char* audio_file_data, 736 blink::WebAudioBus* destination_bus, const char* audio_file_data,
738 size_t data_size, double sample_rate) { 737 size_t data_size, double sample_rate) {
739 return DecodeAudioFileData(destination_bus, 738 return DecodeAudioFileData(destination_bus,
740 audio_file_data, 739 audio_file_data,
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 return; 1072 return;
1074 QuotaDispatcher::ThreadSpecificInstance( 1073 QuotaDispatcher::ThreadSpecificInstance(
1075 thread_safe_sender_.get(), 1074 thread_safe_sender_.get(),
1076 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1075 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1077 storage_partition, 1076 storage_partition,
1078 static_cast<quota::StorageType>(type), 1077 static_cast<quota::StorageType>(type),
1079 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1078 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1080 } 1079 }
1081 1080
1082 } // namespace content 1081 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698