← API
Symbol

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 perceived loudness — removing a workflow tax that game-audio teams currently pay in their DAW. Pass an object to override the target RMS or peak ceiling.

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).