Index: Source/modules/webaudio/AsyncAudioDecoder.h |
diff --git a/Source/modules/webaudio/AsyncAudioDecoder.h b/Source/modules/webaudio/AsyncAudioDecoder.h |
index a615787bd72cb2356fc8f96497d44bc0f47e3d9c..7f774564635bb14bfcef0c606ec09b152471a20f 100644 |
--- a/Source/modules/webaudio/AsyncAudioDecoder.h |
+++ b/Source/modules/webaudio/AsyncAudioDecoder.h |
@@ -25,6 +25,7 @@ |
#ifndef AsyncAudioDecoder_h |
#define AsyncAudioDecoder_h |
+#include "platform/heap/Handle.h" |
#include "public/platform/WebThread.h" |
#include "wtf/Forward.h" |
#include "wtf/OwnPtr.h" |
@@ -33,6 +34,7 @@ namespace WebCore { |
class AudioBuffer; |
class AudioBufferCallback; |
+class AudioBus; |
// AsyncAudioDecoder asynchronously decodes audio file data from an ArrayBuffer in a worker thread. |
// Upon successful decoding, a completion callback will be invoked with the decoded PCM data in an AudioBuffer. |
@@ -47,8 +49,9 @@ public: |
void decodeAsync(ArrayBuffer* audioData, float sampleRate, PassOwnPtr<AudioBufferCallback> successCallback, PassOwnPtr<AudioBufferCallback> errorCallback); |
private: |
+ PassRefPtrWillBeRawPtr<AudioBuffer> createAudioBufferFromAudioBus(AudioBus*); |
static void decode(ArrayBuffer* audioData, float sampleRate, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback); |
- static void notifyComplete(ArrayBuffer* audioData, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback, AudioBuffer*); |
+ static void notifyComplete(ArrayBuffer* audioData, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback, AudioBus*); |
OwnPtr<blink::WebThread> m_thread; |
}; |