Module Flac.Encoder.File

module File: sig .. end

Encode to a local file


Convenience module to encode to a local native FLAC file.

Types

type file 

Generic variant type for file encoder

type handle = {
   fd : Unix.file_descr;
   enc : file Flac.Encoder.t;
   callbacks : file Flac.Encoder.callbacks;
}

Handle for file encoder

Functions

val create_from_fd : ?comments:Flac.Encoder.comments ->
Flac.Encoder.params -> Unix.file_descr -> handle

Create a file encoder writing data to a given Unix file descriptor.

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

val create : ?comments:Flac.Encoder.comments ->
Flac.Encoder.params -> string -> handle

Create a file encoder writing data to the given file URI