package taglib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Taglib.FileSource

Sourcetype file_type = [
  1. | `Autodetect
  2. | `Mpeg
  3. | `OggVorbis
  4. | `OggOpus
  5. | `Flac
  6. | `Mpc
  7. | `OggFlac
  8. | `WavPack
  9. | `Speex
  10. | `TrueAudio
  11. | `Mp4
  12. | `Asf
]

Supported file types. Warning, types: WavPack, * Speex and TrueAudio are only supported in * Taglib >= 1.5. * Types: Mp4, Asf are only supported with * Taglib >= 1.6. * Type: OggOpus is only supported with * Taglib >= 1.9 and does not seem to be supported * in `Autodetect mode.

Sourcetype 'a file_tag constraint 'a = [< file_type ]

Type for a file.

Sourcetype 'a file = 'a file_tag t
Sourceexception Closed

Raised when using a file that has been closed

Sourceexception Not_implemented

Raised when using a file format not supported by * the system's taglib library.

Sourceexception Invalid_file

Raised when taglib cannot parse a file.

Sourceval open_file : file_type -> string -> file_type file

Open a file.

Raises Not_found if file does not exist or could not be opened.

Raises Invalid_file if taglib could not parse the file.

Raises Not_implemented if given file_type is not implemented by taglib.

Sourceval close_file : file_type file -> unit
Sourceval file_save : file_type file -> bool
Sourceval file_type : file_type file -> file_type
Sourceval properties : file_type file -> (string, string list) Hashtbl.t
Sourceval set_properties : file_type file -> (string, string list) Hashtbl.t -> unit

Get audio properties interface

Sourceval audioproperties_length : file_type file -> int
Sourceval audioproperties_bitrate : file_type file -> int
Sourceval audioproperties_samplerate : file_type file -> int
Sourceval audioproperties_channels : file_type file -> int
OCaml

Innovation. Community. Security.