INNER CODE UNIT · Rust
read_audio_info
xiaobaimc/myune_music · rust/src/api/audio_info.rs:72
pub fn read_audio_info(path: String, options: AudioInfoOptions) -> Result<AudioInfo, String> {
let path_ref = Path::new(&path);
let tagged_file = read_tagged_file(path_ref, &options)?;
let mut info = AudioInfo {
title: None,
artist: None,
album: None,
cover: None,
lyrics: None,
duration_ms: None,
bitrate: None,
sample_rate: None,
year: None,
genre: None,
album_artist: None,
track_number: None,