audrey icon indicating copy to clipboard operation
audrey copied to clipboard

Expanding upon the `read::Description` struct - what kind of info do we want to provide?

Open mitchmindtree opened this issue 8 years ago • 1 comments

Currently, the read::Description provides:

  • The number of channels via channel_count().
  • The rate at which the audio is sampled per channel via sample_rate().
  • The audio Format via format() as of #4.

Some other useful information might include:

  • Whether the channels are interleaved or not. If we end up providing unique methods on the Reader for producing InterleavedSamples and NonInterleavedSamples, this could be a useful indicator for determining the more efficient option?
  • Whether the sample is formatted as integer or floating point data.
  • The bit depth per sample. Users who care highly about performance could match on this alongside the sample format to request the most efficient target Sample type when calling Reader::samples.

mitchmindtree avatar Jan 11 '17 03:01 mitchmindtree

Also, maybe providing metadata would be an idea. Maybe though through a different function.

est31 avatar Jan 22 '17 03:01 est31