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

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

Issue 2582443004: ScriptProcessor buffer size should be consistent with callback size (Closed)
Patch Set: Make callbackBufferSize pure virtual Created 4 years 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/OfflineAudioDestinationNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
index 30eb3f96250f62172187488c708a8874394ef224..64cbbb3aacaed9be593c41f26be3f4d0fd06664e 100644
--- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h
@@ -59,6 +59,10 @@ class OfflineAudioDestinationHandler final : public AudioDestinationHandler {
void stopRendering() override;
unsigned long maxChannelCount() const override;
+ // Returns the rendering callback buffer size. This should never be
+ // called.
+ size_t callbackBufferSize() const override;
+
float sampleRate() const override { return m_renderTarget->sampleRate(); }
size_t renderQuantumFrames() const {

Powered by Google App Engine
This is Rietveld 408576698