Skip to content

Apply new GC changes to AudioWorkletNode's processing condition - #1875

Merged
hoch merged 4 commits into
WebAudio:masterfrom
hoch:1453-aw-active-processing
Jun 3, 2019
Merged

hoch merged 4 commits into
WebAudio:masterfrom
hoch:1453-aw-active-processing

Conversation

@hoch

@hoch hoch commented May 14, 2019 •

Copy link
Copy Markdown
Member

Fixes: #1453.

Revise the condition of Audio Worklet node that is "actively processing".

cc: @karlt


Preview | Diff

@hoch
hoch requested a review from padenot May 14, 2019 18:24
@karlt

karlt commented May 14, 2019

Copy link
Copy Markdown
Contributor

This change captures the intent, thanks @hoch, but note that callable process is already required to be true for the AudioWorkletNode to be actively processing. This can therefore be simplified further as the first of the two conditions becomes redundant.

@hoch

hoch commented May 14, 2019

Copy link
Copy Markdown
Member Author

So you mean "The AudioWorkletNode is actively processing" alone is good enough here?

@karlt

karlt commented May 15, 2019

Copy link
Copy Markdown
Contributor

Yes, and so it could be simplified to "The process() method is called synchronously by the audio rendering thread at every render quantum, if the AudioWorkletNode is actively processing."

@hoch

hoch commented May 15, 2019

Copy link
Copy Markdown
Member Author

That's better. Done!

@hoch
hoch merged commit 1c94c45 into WebAudio:master Jun 3, 2019
@hoch
hoch deleted the 1453-aw-active-processing branch March 10, 2021 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[audioworklet] Permit process() calls to be skipped on inactive AudioWorkletProcessors with silent input

3 participants