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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.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/DefaultAudioDestinationNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
index d96b3eb67a54cb7e6561bc8e47e2df6253a3717e..b5fd732da74196581ea28a3557ea529ab5bfb507 100644
--- a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
@@ -50,6 +50,8 @@ class DefaultAudioDestinationHandler final : public AudioDestinationHandler {
void startRendering() override;
void stopRendering() override;
unsigned long maxChannelCount() const override;
+ // Returns the rendering callback buffer size.
+ size_t callbackBufferSize() const override;
private:
explicit DefaultAudioDestinationHandler(AudioNode&);
@@ -64,6 +66,8 @@ class DefaultAudioDestinationNode final : public AudioDestinationNode {
public:
static DefaultAudioDestinationNode* create(BaseAudioContext*);
+ size_t callbackBufferSize() const { return handler().callbackBufferSize(); };
+
private:
explicit DefaultAudioDestinationNode(BaseAudioContext&);
};

Powered by Google App Engine
This is Rietveld 408576698