bliss-audio 0.7.1

A song analysis library for making playlists
Documentation
use bliss_audio::decoder::ffmpeg::FFmpeg as Decoder;
use bliss_audio::decoder::Decoder as DecoderTrait;
use std::env;

/**
 * Simple utility to print the result of an Analysis.
 *
 * Takes a list of files to analyze an the result of the corresponding Analysis.
 */
fn main() {
    let args: Vec<String> = env::args().skip(1).collect();
    for path in &args {
        match Decoder::song_from_path(path) {
            Ok(song) => println!("{}: {:?}", path, song.analysis),
            Err(e) => println!("{path}: {e}"),
        }
    }
}