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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.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/BaseAudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
index 74164a74cd4bdf13af1707c44f221ffa425b1cdb..0212fc849739f771d9b12c63b8413f0652fdfe30 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
@@ -141,6 +141,11 @@ class MODULES_EXPORT BaseAudioContext
return m_destinationNode ? m_destinationNode->handler().sampleRate() : 0;
}
+ size_t callbackBufferSize() const {
+ return m_destinationNode ? m_destinationNode->handler().callbackBufferSize()
+ : 0;
+ }
+
String state() const;
AudioContextState contextState() const { return m_contextState; }
void throwExceptionForClosedState(ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698