File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
chromium/third_party/blink/renderer/modules/webaudio Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,9 @@ bool AudioHandler::InputsAreSilent() {
398
398
399
399
void AudioHandler::SilenceOutputs () {
400
400
for (auto & output : outputs_) {
401
- output->Bus ()->Zero ();
401
+ if (output->IsConnectedDuringRendering ()) {
402
+ output->Bus ()->Zero ();
403
+ }
402
404
}
403
405
}
404
406
Original file line number Diff line number Diff line change @@ -114,7 +114,9 @@ void AudioWorkletHandler::Process(uint32_t frames_to_process) {
114
114
// state. If so, silence the connected outputs and return.
115
115
if (!processor_ || processor_->hasErrorOccurred ()) {
116
116
for (unsigned i = 0 ; i < NumberOfOutputs (); ++i) {
117
- Output (i).Bus ()->Zero ();
117
+ if (Output (i).IsConnectedDuringRendering ()) {
118
+ Output (i).Bus ()->Zero ();
119
+ }
118
120
}
119
121
return ;
120
122
}
You can’t perform that action at this time.
0 commit comments