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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.h

Issue 2582443004: ScriptProcessor buffer size should be consistent with callback size (Closed)
Patch Set: 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/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 dda3527f57476e3697025958418f64c07573959d..f97d13a728ae6f7d67d904f0f5d7ddf5816cc924 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.h
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.h
@@ -89,6 +89,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.

Powered by Google App Engine
This is Rietveld 408576698