package mpg123

  1. Overview
  2. Docs

Module Mpg123Source

Sourcetype error_code = int
Sourcetype flags = int
Sourceval api_version : int
Sourceval done_ : error_code
Sourceval flag_id3 : flags
Sourceval flag_new_id3 : flags
Sourceval flag_icy : flags
Sourceval flag_new_icy : flags
Sourcetype enc = int
Sourceval enc_signed16 : int
Sourceval enc_float32 : int
Sourceval init : unit -> (unit, error_code) result
Sourceval exit : unit -> unit
Sourcetype handle
Sourceval new_ : ?decoder:string -> unit -> (handle, error_code) result
Sourceval delete : handle -> unit
Sourceval plain_strerror : error_code -> string
Sourceval strerror : handle -> string
Sourceval errcode : handle -> error_code
Sourceval decoders : unit -> string list
Sourceval supported_decoders : unit -> string list
Sourceval decoder : handle -> decoder_name:string -> (unit, error_code) result
Sourceval current_decoder : handle -> string
Sourceval open_ : handle -> path:string -> (unit, error_code) result
Sourceval close : handle -> (unit, error_code) result
Sourcetype buf
Sourceval create_buf : int -> buf
Sourceval copy_buf_to_bytes : buf -> Bytes.t -> unit
Sourceval read : handle -> buf:buf -> len:int -> (int, error_code) result
Sourceval scan : handle -> (unit, error_code) result
Sourceval length : handle -> (int, error_code) result
Sourceval meta_check : handle -> flags
Sourceval meta_free : handle -> unit
Sourcetype id3_v1 = {
  1. tag : string;
  2. title : string;
  3. artist : string;
  4. album : string;
  5. year : string;
  6. comment : string;
  7. genre : char;
}
Sourcetype id3_v2 = {
  1. version : char;
  2. title : string;
  3. artist : string;
  4. album : string;
  5. year : string;
  6. genre : string;
  7. comment : string;
}
Sourcetype output_format = {
  1. rate : int;
  2. channels : int;
  3. encoding : int;
}
Sourceval format_none : handle -> (unit, error_code) result
Sourceval format_ : handle -> rate:int -> channels:int -> encodings:int -> (unit, error_code) result
Sourceval id3 : handle -> (id3_v1 option * id3_v2 option, error_code) result
OCaml

Innovation. Community. Security.