Skip to content

Feature Request: read default buffer size from Stream, and/or query device's preferred buffer size #942

@j-n-f

Description

@j-n-f

With ASIO the driver will report a preferred buffer size, and I'm guessing this is what gets used when the default buffer size is chosen. It'd be nice to know what this value is before starting a stream.

Alternatively, one can use BufferSize::Fixed, but would need a way to query what that preferred buffer size is for some Host and Device.

Something like:

enum PreferredBufferSize {
    /// Device doesn't provide this information
    Unknown,
    /// Device can provide this information
    Fixed(usize),
}

let preferred_input_size = device.preferred_input_buffer_size();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions