module Mad:Functions for decoding mp3 files using the libmad.sig
..end
Author(s): Samuel Mimram
exception Mad_error of string
exception Read_error of string
exception End_of_stream
exception Openfile_error of string
exception Closefile_error of string
val wav_output_channels : int
val wav_output_sample_size : int
val wav_output_big_endian : bool
val wav_output_signed : bool
type
mad_file
val openfile : string -> mad_file
Raises Openfile_error
if an error occured while trying to open the file.
val openstream : (int -> string * int) -> mad_file
openstream read_func
opens a stream where read_func n
should be a
function which returns n
bytes of data or less, the second component of
the result being the number of bytes to read in the fist component.val close : mad_file -> unit
openfile
.
Raises Closefile_error
if an error occured while trying to close the file.
val get_current_position : mad_file -> int
openfile
.
val decode_frame : mad_file -> string
val samplefreq : string -> int
val duration : string -> float