Skip to content

SampleFormat clarifications: range of values #512

Open
@hugovdm

Description

@hugovdm

Looking at this: https://docs.rs/cpal/0.13.1/cpal/enum.SampleFormat.html

I see for F32, "The boundaries are (-1.0, 1.0)." If I run the feedback example on my Linux-running laptop, without JACK, the highest value I seem to read from input is 0.302, not 1.0 - I'm curious why that is, whether or not it is a bug, or whether this behaviour can be documented in a good place. (It clips at 0.302.) When using JACK, I get 1.0 as expected.

(Potentially, while touching such documentation, I see an explanation of U16: "The value 0 corresponds to 32768." - and think there's some room for improvement in how this is worded too. I suppose if this isn't clear to the reader of this Issue, and I want to make a specific improvement suggestion, I might as well do it as a Pull Request?)

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