module Vorbis:sig
..end
Decode from or encode to the Ogg Vorbis compressed audio format; or get informations about an Ogg Vorbis file.
exception False
The call returned a 'false' status (eg, ov_bitrate_instant can return OV_FALSE if playback is not in progress, and thus there is no instantaneous bitrate information to report.
exception Invalid_parameters
Some parameters are invalid for this function.
exception Invalid_channels
The given number of channels is invalid.
exception Invalid_argument
Invalid setup request, e.g. out of range argument.
exception Could_not_open_file
The given file could not be opened.
exception Not_vorbis
Bitstream is not Vorbis data.
exception Bad_header
Invalid Vorbis bitstream header.
exception Read_error
A read from media returned an error.
exception Not_audio
Ogg packet doesn't contain audio data
exception Internal_fault
Internal logic fault; indicates a bug or heap/stack corruption.
exception Hole_in_data
Indicates there was an interruption in the data (one of: garbage between pages, loss of sync followed by recapture, or a corrupt page).
exception Bad_link
Indicates that an invalid stream section was supplied, or the requested link is corrupt.
exception Version_mismatch
Invalid Vorbis bitstream header.
exception Not_implemented
Unimplemented mode.
exception Unknown_error of int
An unknown error happened (it should not have happened, please report).
exception Utf8_failure of string
Error while converting utf8.
val string_of_exc : exn -> string option
Return a string representation of an exception
typebitstream =
int
Index of a logical bitstream. The special value -1 means the physical bitsream.
type
info = {
|
vorbis_version : |
(* | version of vorbis codec, must be 0 | *) |
|
audio_channels : |
(* | number of audio channels | *) |
|
audio_samplerate : |
(* | samplerate in Hertz | *) |
|
bitrate_upper : |
|||
|
bitrate_nominal : |
|||
|
bitrate_lower : |
|||
|
bitrate_window : |
Vorbis informations about a file.
(string, string) Stdlib.Hashtbl.t -> unit -> (string * string) list
: Create a list of vorbis tags.
module Encoder:sig
..end
module Decoder:sig
..end
module File:sig
..end
module Skeleton:sig
..end