← API
Interface
LoudnessOptions
RMS-based loudness normalization on a decoded AudioBuffer. `engine.loadSound(..., { normalize: true })` runs this at decode-time and produces a buffer pre-scaled so all sounds sit at the same RMS level — removing a workflow tax that game-audio teams currently pay in their DAW. Pass an object to override the target RMS or peak ceiling. NOTE: this is full-band RMS, not perceptual (K-weighted / LUFS) loudness — two spectrally different clips at equal RMS may still differ in perceived loudness.
Members
- peakCeiling Hard ceiling for the resulting peak; gain is reduced if it would clip. Default 0.99.
- targetRms Target RMS (linear, 0..1). Default 0.1 (~ -20 dBFS).