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

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

Issue 2799993002: Setting convolver buffer needs to update number of output channels (Closed)
Patch Set: Use clampTo Created 3 years, 8 months 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/ConvolverNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.h b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.h
index ba221ab31a1e49989a9ba11510657337fab2a120..ab77e47a35562ee63e07c7391630e9fb1414748e 100644
--- a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.h
@@ -65,6 +65,12 @@ class MODULES_EXPORT ConvolverHandler final : public AudioHandler {
double tailTime() const override;
double latencyTime() const override;
+ // Determine how many output channels to use from the number of
+ // input channels and the number of channels in the impulse response
+ // buffer.
+ unsigned computeNumberOfOutputChannels(unsigned inputChannels,
+ unsigned responseChannels) const;
+
std::unique_ptr<Reverb> m_reverb;
// This Persistent doesn't make a reference cycle including the owner
// ConvolverNode.

Powered by Google App Engine
This is Rietveld 408576698