Comments (4)
This change is an editorial one with no behavior change.
- Remove "still alive" from the step 4.2.2 of the rendering loop algorithm.
- Add a check for "actively processing" 4.2.8.1 - "If node is marked or not actively processing, abort these steps."
@karlt Probably I am missing some corner cases, but this can be a starting point of the discussion. Does this makes sense to you?
from web-audio-api.
Thanks for taking a look.
I think your proposed change makes sense and correctly skips processing.
It also correctly implements "Note that once a unhandled exception is thrown, the processor will output silence throughout its lifetime."
The thing I'm not sure is clearly specified is the silent output for nodes that are not actively processing. Would it be worthwhile explicitly "muting" nodes that are not actively processing, to clarify that their last buffer made available for reading is not used? i.e. instead of changing step 1 of "Visiting a node", replace step 5 "Add node to the beginning of ordered node list" with
5. If node is not actively processing, then mute node.
6. Else, add node to the beginning of ordered node list.
from web-audio-api.
While checking the [[callable process]] behavior, I noticed that 4.4.11 "Set [[callable process]] to true" seems out of place. [[callable process]] is initialized true in the constructor, and we don't want it set to true again after "processorerror" has been triggered.
Looks like 4.4.11 can be removed?
from web-audio-api.
AudioWG call 2024-05-14:
Let's fix this by doing what @hoch suggests, followed-up by what @karlt says. We can also do what @karlt says in his last comment in the same PR.
from web-audio-api.
Related Issues (20)
- Lift autoplay restriction on a muted AudioContext HOT 7
- no ignore background noise HOT 1
- Confused by "Mono-to-stereo processing is used when all connections to the input are mono" HOT 1
- Average AudioContext.outputLatency HOT 6
- PreservePitch in web Audio API HOT 2
- Should copyToChannel accept a shared Float32Array? HOT 2
- Handling unconnected AudioWorkletNode's output HOT 11
- Device-related error reporting via AudioContext.onerror HOT 18
- Event Loop execution in `closed` state HOT 3
- Using `default` device ID for setSinkId() HOT 7
- Mono audio plays on only the left speaker if a ChannelSplitterNode is used HOT 10
- Review mute/unmute/ended and constraints on track in audioContext.createMediaStreamDestination().stream HOT 1
- AudioWorkletProcessor difficult to use i have new Idea
- add AudioNode methods function for manipulation
- AudioDestinationNode numberOfOutputs=1 according to the spec, but all browsers return 0 HOT 3
- AudioWorkletProcessCallback should not be a callback type HOT 8
- Audio routed to the earpiece speaker HOT 1
- AudioContext stuck on "interrupted" in Safari HOT 1
- Can ASSN.start() start an AudioContext that would otherwise not be allowed to start? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-audio-api.