package taglib

  1. Overview
  2. Docs

Module TaglibSource

Ocaml bindings to taglib

Taglib provides a set/get interface for several audio file format's tags informations. * * All strings used in this module should be UTF8-encoded.

Types

Sourcetype 'a t

Main type.

Values

Sourceval version : string

Taglib's version.

Generic tag interface

Sourceval tag_title : 'a t -> string
Sourceval tag_artist : 'a t -> string
Sourceval tag_album : 'a t -> string
Sourceval tag_comment : 'a t -> string
Sourceval tag_genre : 'a t -> string
Sourceval tag_year : 'a t -> int
Sourceval tag_track : 'a t -> int

Set tag interface

Sourceval tag_set_title : 'a t -> string -> unit
Sourceval tag_set_artist : 'a t -> string -> unit
Sourceval tag_set_album : 'a t -> string -> unit
Sourceval tag_set_comment : 'a t -> string -> unit
Sourceval tag_set_genre : 'a t -> string -> unit
Sourceval tag_set_year : 'a t -> int -> unit
Sourceval tag_set_track : 'a t -> int -> unit

File interface

Sourcemodule File : sig ... end

Inline interface

Sourcemodule Inline : sig ... end

This module provides an API to manipulate tags not * attached to a file.

Deprecated

This section is for backward compatibility with previous API. It * may be removed at any time.

Sourcetype file_type =
  1. | Mpeg
  2. | OggVorbis
  3. | OggOpus
  4. | Flac
  5. | Mpc
  6. | OggFlac
  7. | WavPack
  8. | Speex
  9. | TrueAudio
  10. | Mp4
  11. | Asf
Sourceexception Closed
Sourceexception Not_implemented
Sourceval set_strings_unicode : bool -> unit

This does not do anything now..

Sourceval open_file : ?file_type:file_type -> string -> File.file_type File.file
Sourceval audioproperties_length : File.file_type File.file -> int
Sourceval audioproperties_bitrate : File.file_type File.file -> int
Sourceval audioproperties_samplerate : File.file_type File.file -> int
Sourceval audioproperties_channels : File.file_type File.file -> int
Sourceval close_file : File.file_type File.file -> unit
Sourceval file_save : File.file_type File.file -> bool