Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify setparam methods, various cleanups #78

Merged
merged 7 commits into from Jul 10, 2018
Merged

Unify setparam methods, various cleanups #78

merged 7 commits into from Jul 10, 2018

Conversation

@Manishearth
Copy link
Member

Manishearth commented Jul 9, 2018

This adds a ParamType that lets us talk about AudioParams in a unified way. From the DOM side an AudioParam can now just be a (NodeId, ParamType) pair.

In the future we can use this to talk of connecting nodes to audio params as well, as an variant of PortId.

I also did some cleanups, marking engine-related things crate-public (script should never create engines), and renaming AudioNodeType to AudioNodeInit (this will require a rename in the DOM code) to better reflect what it does. AudioNodeType now exists as a bare enum for debugging purposes.

r? @ferjm

@Manishearth
Copy link
Member Author

Manishearth commented Jul 10, 2018

Servo side at ferjm/servo#4

@ferjm ferjm merged commit 37767ee into master Jul 10, 2018
@ferjm ferjm deleted the params branch Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.