fn parse_format(value: &str) -> Result<SampleFormat, String>