Index: content/renderer/media/audio_decoder.h |
diff --git a/content/renderer/media/audio_decoder.h b/content/renderer/media/audio_decoder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..557459b0822f7c674fe159cb53f3775bbe3e2ead |
--- /dev/null |
+++ b/content/renderer/media/audio_decoder.h |
@@ -0,0 +1,37 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_RENDERER_MEDIA_AUDIO_DECODER_ANDROID_H_ |
qinmin
2013/06/21 04:37:05
s/CONTENT_RENDERER_MEDIA_AUDIO_DECODER_ANDROID_H_/
scherkus (not reviewing)
2013/06/21 21:37:59
Done.
|
+#define CONTENT_RENDERER_MEDIA_AUDIO_DECODER_ANDROID_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+#if defined(OS_ANDROID) |
+#include "base/callback_forward.h" |
+#include "base/file_descriptor_posix.h" |
+#include "base/shared_memory.h" |
+#endif |
+ |
+namespace WebKit { |
+class WebAudioBus; |
+} |
+ |
+namespace content { |
+ |
+#if defined(OS_ANDROID) |
qinmin
2013/06/21 04:37:05
this file is purely for android, i think it can b
scherkus (not reviewing)
2013/06/21 21:37:59
The other webkit/renderer/media/audio_decoder.h fi
|
+typedef base::Callback< |
+ void(base::SharedMemoryHandle, base::FileDescriptor, size_t)> |
+ WebAudioMediaCodecRunner; |
+ |
+bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, |
+ const char* data, |
+ size_t data_size, |
+ double sample_rate, |
+ const WebAudioMediaCodecRunner& runner); |
+#endif |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_RENDERER_MEDIA_AUDIO_DECODER_H_ |
+ |