package flac

  1. Overview
  2. Docs
type 'a dec
type 'a t
type write = float array array -> unit
type read = int -> string * int
type 'a callbacks
type generic
type info = {
  1. sample_rate : int;
  2. channels : int;
  3. bits_per_sample : int;
  4. total_samples : int64;
  5. md5sum : string;
}
type comments = string * (string * string) list
type state = [
  1. | `Aborted
  2. | `End_of_stream
  3. | `Memory_allocation_error
  4. | `Ogg_error
  5. | `Read_frame
  6. | `Read_metadata
  7. | `Search_for_frame_sync
  8. | `Search_for_metadata
  9. | `Seek_error
  10. | `Uninitialized
]
exception Lost_sync
exception Bad_header
exception Frame_crc_mismatch
exception Unparseable_stream
exception Not_flac
val get_callbacks : ?seek:(int64 -> unit) -> ?tell:(unit -> int64) -> ?length:(unit -> int64) -> ?eof:(unit -> bool) -> read -> write -> generic callbacks
val create : 'a callbacks -> 'a dec
val init : 'a dec -> 'a callbacks -> 'a t * info * comments option
val process : 'a t -> 'a callbacks -> unit
val seek : 'a t -> 'a callbacks -> Int64.t -> bool
val flush : 'a t -> 'a callbacks -> bool
val reset : 'a t -> 'a callbacks -> bool
val state : 'a t -> 'a callbacks -> state
val to_s16le : float array array -> string
module File : sig ... end
OCaml

Innovation. Community. Security.