audrey
audrey copied to clipboard
Expanding upon the `read::Description` struct - what kind of info do we want to provide?
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
Formatviaformat()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
Readerfor producingInterleavedSamplesandNonInterleavedSamples, 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
Sampletype when callingReader::samples.
Also, maybe providing metadata would be an idea. Maybe though through a different function.