get_reader_for_sample

Function get_reader_for_sample 

Source
pub fn get_reader_for_sample(
    bits_per_sample: u16,
    format: u16,
) -> fn(buffer: &[u8], offset: usize, little_endian: bool) -> f64
Expand description

Returns the reader for a sample

§Parameters

  • bits_per_sample: the bits per sample
  • format: the format type

§Returns

A function to read each sample value