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

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

Issue 1803233002: AnalyserNode should downmix channels to mono. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/RealtimeAnalyser.h
diff --git a/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.h b/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.h
index 0f7e1e7aceb67b87804d7c0905af8ce7a64b181c..2b27a00c42ffedded38d5215f56d415ee98f5847 100644
--- a/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.h
+++ b/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.h
@@ -77,6 +77,9 @@ private:
AudioFloatArray m_inputBuffer;
unsigned m_writeIndex;
+ // Input audio is downmixed to this bus before copying to m_inputBuffer.
+ RefPtr<AudioBus> m_downMixBus;
+
size_t m_fftSize;
OwnPtr<FFTFrame> m_analysisFrame;
void doFFTAnalysis();

Powered by Google App Engine
This is Rietveld 408576698