module Taglib:Ocaml bindings to taglibsig..end
Usage is quite simple. All functions using a file type variable, except close_file,
may raise Closed if given file was closed.
type file
type file_type =
| |
Mpeg |
| |
OggVorbis |
| |
Flac |
| |
Mpc |
exception Closed
val set_strings_unicode : bool -> unittrue to use strings in latin1 (ISO-8859-1)
formatval open_file : ?file_type:file_type -> string -> file
Raises Not_found if file does not exist or could not be opened.
val close_file : file -> unitval file_save : file -> boolval tag_title : file -> stringval tag_artist : file -> stringval tag_album : file -> stringval tag_comment : file -> stringval tag_genre : file -> stringval tag_year : file -> intval tag_track : file -> intval tag_set_title : file -> string -> unitval tag_set_artist : file -> string -> unitval tag_set_album : file -> string -> unitval tag_set_comment : file -> string -> unitval tag_set_genre : file -> string -> unitval tag_set_year : file -> int -> unitval tag_set_track : file -> int -> unitval audioproperties_length : file -> intval audioproperties_bitrate : file -> intval audioproperties_samplerate : file -> intval audioproperties_channels : file -> int