Skip to content

Change Format to something more suitable/flexible #370

@mitchmindtree

Description

@mitchmindtree

It has always seemed a little odd to me to include the sample rate within the stream's "format" type. Fields like channels and interleaved make sense as these describe the arrangement/layout of the streams' buffers, but sample rate seems a little out of place in a Format type.

Some other more general/flexible names that come to mind:

  • StreamParams/Parameters It seems PortAudio use this.
  • StreamDesc/Description
  • StreamConfig/Configuration

I quite like StreamParams and StreamConfig.

These more general names might also make more sense for potential future fields like desired_buffer_len or others we haven't considered just yet.

Perhaps we could keep StreamFormat around for grouping the channels and interleaved (#367) fields, and have StreamFormat as a field within StreamParams/StreamConfig?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions