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

Unified Diff: third_party/WebKit/Source/modules/webaudio/PeriodicWave.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/PeriodicWave.h
diff --git a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
index 1e34ba64d5ab7873e5ec4d0416e605a5dbd9f80d..1c045a29b1eef08da4c7514fec5829c17fa976c4 100644
--- a/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
+++ b/third_party/WebKit/Source/modules/webaudio/PeriodicWave.h
@@ -40,6 +40,7 @@ namespace blink {
class BaseAudioContext;
class ExceptionState;
+class PeriodicWaveOptions;
class PeriodicWave final : public GarbageCollectedFinalized<PeriodicWave>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
@@ -52,11 +53,22 @@ public:
// Creates an arbitrary periodic wave given the frequency components (Fourier coefficients).
static PeriodicWave* create(
BaseAudioContext&,
+ size_t realLength,
+ const float* real,
+ size_t imagLength,
+ const float* imag,
+ bool normalize,
+ ExceptionState&);
+
+ static PeriodicWave* create(
+ BaseAudioContext&,
DOMFloat32Array* real,
DOMFloat32Array* imag,
bool normalize,
ExceptionState&);
+ static PeriodicWave* create(BaseAudioContext*, const PeriodicWaveOptions&, ExceptionState&);
+
virtual ~PeriodicWave();
// Returns pointers to the lower and higher wave data for the pitch range containing

Powered by Google App Engine
This is Rietveld 408576698