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

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

Issue 1952793002: Move the exception logic to the AudioNode creator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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/AudioBufferSourceNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h
index 8b355ba1af854166780918560ec63510c27eb731..35f1c1e49b95b80a79fd1df1f6d7359e9c0a0d46 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.h
@@ -141,7 +141,7 @@ private:
class AudioBufferSourceNode final : public AudioScheduledSourceNode {
DEFINE_WRAPPERTYPEINFO();
public:
- static AudioBufferSourceNode* create(AbstractAudioContext&, float sampleRate);
+ static AudioBufferSourceNode* create(AbstractAudioContext&, ExceptionState&);
DECLARE_VIRTUAL_TRACE();
AudioBufferSourceHandler& audioBufferSourceHandler() const;
@@ -162,7 +162,7 @@ public:
void start(double when, double grainOffset, double grainDuration, ExceptionState&);
private:
- AudioBufferSourceNode(AbstractAudioContext&, float sampleRate);
+ AudioBufferSourceNode(AbstractAudioContext&);
Member<AudioParam> m_playbackRate;
Member<AudioParam> m_detune;

Powered by Google App Engine
This is Rietveld 408576698