Skip to content

Provide the tools to pass devices (and the rest) around across Send/Sync boundaries #435

@MOZGIII

Description

@MOZGIII

Devices and Streams aren't Send/Sync.

To pass them around, we can create a thread to bind them all to, and expose channel-based control interface over it to allow passing commands to streams and devices.

This does not have to be baked into the device implementation, but can be a separate utility for users to manually use if they need to.

The reason to include it into cpal is it's that non Send/Sync is a very serious limitation, and it should be solved at the library level, since the underlying design limitation also comes from the library level (i.e. it affects everyone).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions