You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webaudio/Analyser/handle-silent-inputs.html test is failing
https://bugs.webkit.org/show_bug.cgi?id=216708
Reviewed by Geoffrey Garen.
Source/WebCore:
Merge the following fix to AnalyserNode from Blink so that webaudio/Analyser/handle-silent-inputs.html
layout test starts passing:
- https://codereview.chromium.org/2666063003
No new tests, rebaselined existing test.
* Modules/webaudio/AnalyserNode.cpp:
(WebCore::AnalyserNode::process):
(WebCore::AnalyserNode::updatePullStatus):
(WebCore::AnalyserNode::tailTime const):
* Modules/webaudio/AnalyserNode.h:
* Modules/webaudio/AudioBasicInspectorNode.h:
LayoutTests:
Rebaseline test that is now passing.
* webaudio/Analyser/handle-silent-inputs-expected.txt:
Canonical link: https://commits.webkit.org/229511@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267252 268f45cc-cd09-0410-ab3c-d52691b4dbfc
if (!isInitialized() || !input(0)->isConnected()) {
85
+
if (!isInitialized()) {
86
86
outputBus->zero();
87
87
return;
88
88
}
89
89
90
90
AudioBus* inputBus = input(0)->bus();
91
91
92
-
// Give the analyser the audio which is passing through this AudioNode.
92
+
// Give the analyser the audio which is passing through this AudioNode. This must always
93
+
// be done so that the state of the Analyser reflects the current input.
93
94
m_analyser.writeInput(inputBus, framesToProcess);
94
95
96
+
if (!input(0)->isConnected()) {
97
+
outputBus->zero();
98
+
return;
99
+
}
100
+
95
101
// For in-place processing, our override of pullInputs() will just pass the audio data through unchanged if the channel count matches from input to output
96
102
// (resulting in inputBus == outputBus). Otherwise, do an up-mix to stereo.
bool m_needAutomaticPull { false }; // When setting to true, AudioBasicInspectorNode will be pulled automatically by AudioContext before the end of each render quantum.
bool m_needAutomaticPull { false }; // When setting to true, AudioBasicInspectorNode will be pulled automatically by AudioContext before the end of each render quantum.
0 commit comments