let to_string m =
let name =
match m.bitrate_control with
| VBR _ -> "%mp3.vbr"
| ABR _ -> "%mp3.abr"
| CBR _ -> "%mp3"
in
Printf.sprintf "%s(%s,%s,samplerate=%d,id3v2=%b)"
name
(string_of_stereo m.stereo)
(string_of_bitrate_control m.bitrate_control)
m.samplerate
(m.id3v2 <> None)