Chromium Code Reviews| Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| index 250c76919a840409e7e6ac456a0d5739cf56fc98..c4b54dc3634eddac5df30ccebac719d03e446210 100644 |
| --- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
| @@ -776,19 +776,34 @@ RendererWebKitPlatformSupportImpl::createAudioDevice( |
| #if defined(OS_ANDROID) |
| bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
| blink::WebAudioBus* destination_bus, const char* audio_file_data, |
| + size_t data_size) { |
| + return DecodeAudioFileData(destination_bus, |
| + audio_file_data, |
| + data_size, |
| + thread_safe_sender_); |
| +} |
| +// DEPRECATED |
| +bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
| + blink::WebAudioBus* destination_bus, const char* audio_file_data, |
| size_t data_size, double sample_rate) { |
| return DecodeAudioFileData(destination_bus, |
| audio_file_data, |
| data_size, |
| - sample_rate, |
| thread_safe_sender_); |
| } |
| #else |
| bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
| blink::WebAudioBus* destination_bus, const char* audio_file_data, |
| + size_t data_size) { |
|
Raymond Toy
2014/03/11 18:03:07
Can you make sample_rate an optional parameter ins
KhNo
2014/03/12 01:51:31
Actually I tried, but there are definations of loa
|
| + return DecodeAudioFileData( |
| + destination_bus, audio_file_data, data_size); |
| +} |
| +// DEPRECATED |
| +bool RendererWebKitPlatformSupportImpl::loadAudioResource( |
| + blink::WebAudioBus* destination_bus, const char* audio_file_data, |
| size_t data_size, double sample_rate) { |
| return DecodeAudioFileData( |
| - destination_bus, audio_file_data, data_size, sample_rate); |
| + destination_bus, audio_file_data, data_size); |
| } |
| #endif // defined(OS_ANDROID) |