Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Vorbis.EncoderSourceInternal state of an encoder.
create chans rate max_br nom_br min_br creates a new encoder with * chans channels, with sample rate rate Hz and with respectively max_br, * nom_br and min_br as maximal, nominal and minimal bitrates (in bps).
create_vbr chans rate quality creates a new encoder in variable bitrate * with chans channels, with sample rate rate Hz and with quality * quality, which should be between -1 and 1 (1 is the best).
Encode a header given a list of tags.
val headerout_packetout :
?encoder:string ->
t ->
(string * string) list ->
Ogg.Stream.packet * Ogg.Stream.packet * Ogg.Stream.packetEncoder a header, but do not submit packet to * Ogg Stream. Usefull when multiplexing ogg streams * since the all first packets of each streams must be packed * in the initial pages.
Encode a buffer of PCM data. * The PCM data array must have at least the expected * number of channels. Otherwise, the function raises Invalid_channels.
val encode_buffer_float_ba :
t ->
Ogg.Stream.stream ->
(float, Bigarray.float32_elt, Bigarray.c_layout) Bigarray.Array1.t array ->
int ->
int ->
unitConvert a granulepos to absolute time in seconds. The granulepos is * interpreted in the context of a given encoder, and gives * the end time of a frame's presentation as used in Ogg mux ordering.