Skip to content

Separate up the audio unit SubType variants into specific enums associated with each Type variant. #35

@mitchmindtree

Description

@mitchmindtree

This could significantly improve the ergonomics and safety of the AudioUnit::new API.

Rather than taking both a Type and SubType, it should take any T: Into<Type>, where:

  • Type's variants hold their own sub type data
  • From<$subtype> (for every $subtype) is implemented for Type

This way a user can just pass any single type that can be automatically converted to a Type.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions