mp3-duration

Crates.iomp3-duration
lib.rsmp3-duration
version0.1.10
sourcesrc
created_at2017-12-11 02:40:32.230304
updated_at2020-06-18 07:00:03.179702
descriptionA library for measuring the playback duration of mp3 files
homepage
repositoryhttps://github.com/agersant/mp3-duration
max_upload_size
id42351
size22,015
Antoine Gersant (agersant)

documentation

README

Crates.io Build Status

mp3-duration

This crate has only one purpose: determining the playback duration of mp3 files.

Example

use std::path::Path;
use mp3_duration;

let path = Path::new("music.mp3");
let duration = mp3_duration::from_path(&path).unwrap();
println!("File duration: {:?}", duration);

Changelog

Version 0.1.10

  • Replaced usage of failure with thiserror for error management (thanks @amesgen for the contribution)

Version 0.1.9

  • Fixed a bug where the MP3Duration error type was no longer public since version 0.1.8 (thanks @compenguy for the contribution)

Version 0.1.8

  • Minor performance improvements

Version 0.1.7

  • Fixed a crash when reading corrupted files with impossibly short MPEG frames

Links

Commit count: 75

cargo fmt