Analyze.ReplayGain
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.