Skip to content

[Question] turn a Sample to &[u8]? #396

Description

@Geobert

Hi,

I'm using master branch on 624ba659da7ed97cd973d98fe1c0eae331a6f84c so I can follow the examples folder :). I'm trying to send a Sample over TCP using tokio and I'm reaching a point where I want to have a &[u8] out of a cpal::Sample.

Is there a simple way to achieve that?

Regards,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions