Conventions

How arguments are named, which units they use, and what the functions give back.

On this page

The same rules hold for every function, so a name tells you the unit.

Units

Suffix or nameUnitExample
...DbDecibels. Gain is relative, a level is relative to full scale (dBFS).gainDb, thresholdDb, ceilingDb, truePeakDb, targetDb, makeupDb, amountDb
...MsMilliseconds, on the dynamics processors.attackMs, releaseMs, lookAheadMs
...LufsLoudness in LUFS.targetLufs
...HzHertz.minHz, maxHz
seconds, at, tail, fadeIn, fadeOut, crossfade, padSeconds. Anything about time that has no Ms is in seconds.at=2.5
level, mix, feedback, volume, pan, peak, rmsLinear numbers, not decibels. level, mix, feedback and volume run from 0 to 1, pan from -1 to 1.mix=0.3

A value in decibels is never a bare db, gain or truePeak. If the name has no Db, it is not decibels.

Names

  • Arguments are camelCase and are the same in every function that has them: audio is always the audio, seconds always a length, sampleRate always Hz.
  • Functions that change audio give back a new buffer. The audio you passed in is never modified.
  • Functions that build a timeline (audioAdd, audioPump, audioDuck, audioTrackGain) give back the same timeline so calls can be chained.
  • Errors always have a bxaudio. type, see Errors.
  • What each function returns is in Return values.

Command line

Command line options follow the same names: --targetDb, --thresholdDb, --truePeakDb. An option a command does not have is an error, so a misspelled or old option is never silently ignored.

Edit this page Download Markdown Last updated Oct 16, 2026, 2:03:10 PM Report an issue