Module Flac.Decoder.File

module File: sig .. end

Local file decoding.


Convenience module to decode local files

Types

type file 

File variant type for a file decoder

type handle = {
   fd : Unix.file_descr;
   dec : file Flac.Decoder.t;
   callbacks : file Flac.Decoder.callbacks;
   info : Flac.Decoder.info;
   comments : (string * (string * string) list) option;
}

Functions

val create_from_fd : Flac.Decoder.write -> Unix.file_descr -> handle

Create a file decoder from a Unix file descriptor

Note: this decoder requires seeking thus will only work on seekable file descriptor.

val create : Flac.Decoder.write -> string -> handle

Create a file decoder from a file URI