libminau 0.1.0

A library version of Minau, a music player built directly on top of Symphonia and CPAL.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::exit;

use crate::player::metadata::MetaData;
use crate::player::player_structs::Player;
use lofty::probe::Probe;

impl Player {
    pub fn metadata(&self) -> MetaData {
        let probe = Probe::open(&self.path).unwrap_or_else(|e| {
            eprintln!("Failed to probe metadata for {}: {}", self.path, e);
            exit(1);
        });

        MetaData::new(probe)
    }
}