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.
Types
type t
type file_type =
| |
Mpeg |
| |
OggVorbis |
| |
Flac |
| |
Mpc |
| |
OggFlac |
| |
WavPack |
| |
Speex |
| |
TrueAudio |
| |
Mp4 |
| |
Asf |
WavPack,
Speex and TrueAudio are only supported in
Taglib >= 1.5.
Types: Mp4, Asf are only supported with
Taglib >= 1.6.val version : stringexception Closed
exception Not_implemented
val set_strings_unicode : bool -> unittrue to use strings in latin1 (ISO-8859-1)
formatval open_file : ?file_type:file_type -> string -> t
Raises Not_found if file does not exist or could not be opened.
Raises Not_implemented if using a file_type that is not implemented
in the system's taglib library.
val close_file : t -> unitval file_save : t -> boolval tag_title : t -> stringval tag_artist : t -> stringval tag_album : t -> stringval tag_comment : t -> stringval tag_genre : t -> stringval tag_year : t -> intval tag_track : t -> intval tag_set_title : t -> string -> unitval tag_set_artist : t -> string -> unitval tag_set_album : t -> string -> unitval tag_set_comment : t -> string -> unitval tag_set_genre : t -> string -> unitval tag_set_year : t -> int -> unitval tag_set_track : t -> int -> unitval audioproperties_length : t -> intval audioproperties_bitrate : t -> intval audioproperties_samplerate : t -> intval audioproperties_channels : t -> int