OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |