Skip to content

Allow AudioNodes & AudioUnits to be !Send & !Sync#92

Draft
Smona wants to merge 11 commits intoSamiPerttu:masterfrom
Smona:allow-local-nodes
Draft

Allow AudioNodes & AudioUnits to be !Send & !Sync#92
Smona wants to merge 11 commits intoSamiPerttu:masterfrom
Smona:allow-local-nodes

Conversation

@Smona
Copy link
Copy Markdown
Contributor

@Smona Smona commented Mar 19, 2026

Resolves #91

Smona added 11 commits March 14, 2026 02:15
This enables the use of non-Send and non-Sync AudioUnits with `Net`.

Advanced methods and operators which need to construct inner nodes are
moved behind a new `NetUnit` trait, which is implemented for boxed units
to provide backwards compatibility. The new trait enables users who
aren't using trait objects to unlock this higher-level functionality by
implementing the trait for their inner type.

A `BoxedNet` type alias is provided which is backwards-compatible with
the previous non-generic Net.

Finally, this implements `AudioUnit` for any boxed type which implements
`AudioUnit`, enabling the same impls to be reused between AudioUnit
trait objects and concrete user types that directly `impl AudioUnit`.
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.

Feature request: allow AudioNodes to be !Send and !Sync

1 participant