| Index: third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
|
| index a3b8ba1398afad60a60bbb673d444e97046ca3e8..52db2d37faf4227beb1860af8478286a97320d2b 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h
|
| @@ -40,6 +40,8 @@
|
| namespace blink {
|
|
|
| class AudioBus;
|
| +class AudioBufferOptions;
|
| +class BaseAudioContext;
|
| class ExceptionState;
|
|
|
| class MODULES_EXPORT AudioBuffer final : public GarbageCollected<AudioBuffer>, public ScriptWrappable {
|
| @@ -47,6 +49,7 @@ class MODULES_EXPORT AudioBuffer final : public GarbageCollected<AudioBuffer>, p
|
| public:
|
| static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate);
|
| static AudioBuffer* create(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState&);
|
| + static AudioBuffer* create(BaseAudioContext*, const AudioBufferOptions&, ExceptionState&);
|
|
|
| // Returns 0 if data is not a valid audio file.
|
| static AudioBuffer* createFromAudioFileData(const void* data, size_t dataSize, bool mixToMono, float sampleRate);
|
|
|