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

Unified Diff: Source/modules/webaudio/AudioProcessingEvent.cpp

Issue 210973002: Supporting a playbackTime attribute on AudioprocessingEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 9 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: Source/modules/webaudio/AudioProcessingEvent.cpp
diff --git a/Source/modules/webaudio/AudioProcessingEvent.cpp b/Source/modules/webaudio/AudioProcessingEvent.cpp
index f33704648068b3e4d5b726f259d4c4d5712abcb9..186504859e81c3cc76163af54fb812a72c57fe9f 100644
--- a/Source/modules/webaudio/AudioProcessingEvent.cpp
+++ b/Source/modules/webaudio/AudioProcessingEvent.cpp
@@ -35,9 +35,9 @@ PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create()
return adoptRefWillBeRefCountedGarbageCollected(new AudioProcessingEvent);
}
-PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer)
+PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime)
{
- return adoptRefWillBeRefCountedGarbageCollected(new AudioProcessingEvent(inputBuffer, outputBuffer));
+ return adoptRefWillBeRefCountedGarbageCollected(new AudioProcessingEvent(inputBuffer, outputBuffer, playbackTime));
}
AudioProcessingEvent::AudioProcessingEvent()
@@ -45,10 +45,11 @@ AudioProcessingEvent::AudioProcessingEvent()
ScriptWrappable::init(this);
}
-AudioProcessingEvent::AudioProcessingEvent(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer)
+AudioProcessingEvent::AudioProcessingEvent(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer, double playbackTime)
: Event(EventTypeNames::audioprocess, true, false)
, m_inputBuffer(inputBuffer)
, m_outputBuffer(outputBuffer)
+ , m_playbackTime(playbackTime)
{
ScriptWrappable::init(this);
}

Powered by Google App Engine
This is Rietveld 408576698