package shine

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

OCaml bindings for the libshine.

type t
type parameters = {
  1. samplerate : int;
  2. channels : int;
  3. bitrate : int;
}
exception Invalid_buffer_size
exception Invalid_configuration

Raised when samplerate and/or bitrate * is invalid.

exception Invalid_channels
val create : parameters -> t
val samples_per_pass : t -> int
val encode_buffer : t -> float array array -> string
val encode_s16le : t -> string -> int -> string
val flush : t -> string
OCaml

Innovation. Community. Security.