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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/audio/AudioDestination.h
diff --git a/third_party/WebKit/Source/platform/audio/AudioDestination.h b/third_party/WebKit/Source/platform/audio/AudioDestination.h
index a62c38a50fe998f4f87b123016094b928ef92ddb..e986b827e3106ba5eba3deb51b1d7f7e6173b775 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.h
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.h
@@ -92,6 +92,8 @@ class PLATFORM_EXPORT AudioDestination : public WebAudioDevice::RenderCallback,
static float hardwareSampleRate();
+ size_t callbackBufferSize() const { return m_callbackBufferSize; }
+
// maxChannelCount() returns the total number of output channels of the audio
// hardware. A value of 0 indicates that the number of channels cannot be
// configured and that only stereo (2-channel) destinations can be created.
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698