Serial-ATA / lofty-rs

Audio metadata library
Apache License 2.0
185 stars 34 forks source link

Support mpc #199

Closed afranke closed 1 year ago

afranke commented 1 year ago

https://en.wikipedia.org/wiki/Musepack is not as common as mp3 or ogg, but still fairly common. Metadata are in an APE v2 container, so it shouldn’t be too difficult as you already have APE support.

Serial-ATA commented 1 year ago

It's refreshing to work with a simple format like this. It wasn't too difficult to get it working :).

Could you try out #200 with some of your library?

afranke commented 1 year ago
cargo run --example tag_reader ~/Musique/The\ Darkness/Permission\ To\ Land/01\ -\ Black\ Shuck.mpc                                               mpc
    Finished dev [unoptimized + debuginfo] target(s) in 0.05s
     Running `target/debug/examples/tag_reader '/home/afranke/Musique/The Darkness/Permission To Land/01 - Black Shuck.mpc'`
--- Tag Information ---
Title: Black Shuck
Artist: The Darkness
Album: Permission to Land
Genre: Rock
Album Artist: The Darkness
--- Audio Properties ---
Bitrate (Audio): 177
Bitrate (Overall): 177
Sample Rate: 44100
Bit depth: 0
Channels: 2
Duration: 03:22

Looks like it works. :slightly_smiling_face: (It’s the only album I have in this format and I tested all the songs)

Serial-ATA commented 1 year ago

Great, thanks!