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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBuffer.h

Issue 2102133002: Add constructors for WebAudio nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and prefix use counter names with WebAudio Created 4 years, 3 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
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);

Powered by Google App Engine
This is Rietveld 408576698