mm.audio
Analyze.ReplayGain
mm
mm.base
mm.image
mm.midi
mm.oss
mm.video
type t
exception Not_supported
val create : channels:int -> samplerate:int -> t
Create internal state for computing ReplayGain. Raises Not_supported if the samplerate is not supported.
Not_supported
val process : t -> buffer -> int -> int -> unit
Process a buffer.
val peak : t -> float
Peak of processed samples.
val gain : t -> float
Replaygain for processed samples.