Index: Source/modules/webaudio/AudioBuffer.h |
diff --git a/Source/modules/webaudio/AudioBuffer.h b/Source/modules/webaudio/AudioBuffer.h |
index cea3f06709d5ce736b24c2fb97c87626b9a90e69..0abee6a5b298acacaff051c44271e4b4b6193529 100644 |
--- a/Source/modules/webaudio/AudioBuffer.h |
+++ b/Source/modules/webaudio/AudioBuffer.h |
@@ -41,12 +41,14 @@ namespace WebCore { |
class AudioBus; |
class ExceptionState; |
-class AudioBuffer : public ScriptWrappable, public RefCounted<AudioBuffer> { |
+class AudioBuffer : public ScriptWrappable, public RefCountedWillBeGarbageCollectedFinalized<AudioBuffer> { |
sof
2014/03/22 14:06:13
Swap the order of these two? (i.e., I don't think
keishi
2014/03/27 07:39:37
Done.
|
public: |
- static PassRefPtr<AudioBuffer> create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate); |
+ static PassRefPtrWillBeRawPtr<AudioBuffer> create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate); |
// Returns 0 if data is not a valid audio file. |
- static PassRefPtr<AudioBuffer> createFromAudioFileData(const void* data, size_t dataSize, bool mixToMono, float sampleRate); |
+ static PassRefPtrWillBeRawPtr<AudioBuffer> createFromAudioFileData(const void* data, size_t dataSize, bool mixToMono, float sampleRate); |
+ |
+ static PassRefPtrWillBeRawPtr<AudioBuffer> createFromAudioBus(AudioBus*); |
// Format |
size_t length() const { return m_length; } |
@@ -65,6 +67,9 @@ public: |
static float minAllowedSampleRate(); |
static float maxAllowedSampleRate(); |
+ |
+ void trace(Visitor*) { } |
+ |
protected: |
AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate); |
explicit AudioBuffer(AudioBus*); |