| 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 !base::StringToInt(UTF16ToUTF8(input_device_id), &session_id)) { | 718 !base::StringToInt(UTF16ToUTF8(input_device_id), &session_id)) { |
| 719 if (input_channels > 0) | 719 if (input_channels > 0) |
| 720 DLOG(WARNING) << "createAudioDevice(): request for audio input ignored"; | 720 DLOG(WARNING) << "createAudioDevice(): request for audio input ignored"; |
| 721 | 721 |
| 722 input_channels = 0; | 722 input_channels = 0; |
| 723 } | 723 } |
| 724 | 724 |
| 725 media::AudioParameters params( | 725 media::AudioParameters params( |
| 726 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, | 726 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, |
| 727 layout, input_channels, | 727 layout, input_channels, |
| 728 static_cast<int>(sample_rate), 16, buffer_size); | 728 static_cast<int>(sample_rate), 16, buffer_size, |
| 729 media::AudioParameters::NO_EFFECTS); |
| 729 | 730 |
| 730 return new RendererWebAudioDeviceImpl(params, callback, session_id); | 731 return new RendererWebAudioDeviceImpl(params, callback, session_id); |
| 731 } | 732 } |
| 732 | 733 |
| 733 #if defined(OS_ANDROID) | 734 #if defined(OS_ANDROID) |
| 734 bool RendererWebKitPlatformSupportImpl::loadAudioResource( | 735 bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
| 735 blink::WebAudioBus* destination_bus, const char* audio_file_data, | 736 blink::WebAudioBus* destination_bus, const char* audio_file_data, |
| 736 size_t data_size, double sample_rate) { | 737 size_t data_size, double sample_rate) { |
| 737 return DecodeAudioFileData(destination_bus, | 738 return DecodeAudioFileData(destination_bus, |
| 738 audio_file_data, | 739 audio_file_data, |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 return; | 1065 return; |
| 1065 QuotaDispatcher::ThreadSpecificInstance( | 1066 QuotaDispatcher::ThreadSpecificInstance( |
| 1066 thread_safe_sender_.get(), | 1067 thread_safe_sender_.get(), |
| 1067 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1068 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
| 1068 storage_partition, | 1069 storage_partition, |
| 1069 static_cast<quota::StorageType>(type), | 1070 static_cast<quota::StorageType>(type), |
| 1070 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1071 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1071 } | 1072 } |
| 1072 | 1073 |
| 1073 } // namespace content | 1074 } // namespace content |
| OLD | NEW |