OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_AUDIO_DECODER_ANDROID_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_ANDROID_AUDIO_DECODER_ANDROID_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/callback_forward.h" |
| 10 #include "base/file_descriptor_posix.h" |
| 11 #include "base/shared_memory.h" |
| 12 |
| 13 namespace WebKit { |
| 14 class WebAudioBus; |
| 15 } |
| 16 |
| 17 namespace content { |
| 18 |
| 19 typedef base::Callback< |
| 20 void(base::SharedMemoryHandle, base::FileDescriptor, size_t)> |
| 21 WebAudioMediaCodecRunner; |
| 22 |
| 23 bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, |
| 24 const char* data, |
| 25 size_t data_size, |
| 26 double sample_rate, |
| 27 const WebAudioMediaCodecRunner& runner); |
| 28 |
| 29 } // namespace content |
| 30 |
| 31 #endif // CONTENT_RENDERER_MEDIA_ANDROID_AUDIO_DECODER_ANDROID_H_ |
OLD | NEW |