Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(252)

Unified Diff: webkit/media/audio_decoder.h

Issue 12457043: Android implementation of WebAudio audio file decoder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/media/android/audio_decoder_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/media/audio_decoder.h
diff --git a/webkit/media/audio_decoder.h b/webkit/media/audio_decoder.h
index aae5581d13ab8112140845da4b3840ca61ff76c3..fec049d4254662a348f0e06b51614e24e885c20e 100644
--- a/webkit/media/audio_decoder.h
+++ b/webkit/media/audio_decoder.h
@@ -7,13 +7,30 @@
#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 webkit_media {
+#if !defined(OS_ANDROID)
+
// Decode in-memory audio file data.
bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, const char* data,
size_t data_size, double sample_rate);
+#else
+
+typedef base::Callback<void (base::SharedMemoryHandle, base::FileDescriptor)>
+ WebAudioMediaCodecRunner;
+
+bool DecodeAudioFileData(WebKit::WebAudioBus* destination_bus, const char* data,
+ size_t data_size, double sample_rate,
+ const WebAudioMediaCodecRunner& runner);
+#endif
} // namespace webkit_media
« no previous file with comments | « webkit/media/android/audio_decoder_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698