Skip to main content
ReplayGain reads the REPLAYGAIN_* tags written by tools like loudgain / mp3gain / metaflac and applies the recommended gain at playback time. Albums are kept at consistent loudness without re-encoding the files.

Settings

Applied via dsp_replaygain_set_settings() in lib/rbcodec/dsp/dsp_misc.h.

Modes explained

  • Track — every track plays at its own RG-normalised level.
  • Album — all tracks within an album share the same gain; preserves intended quiet/loud relationships within the album.
  • Track shuffle — Track gain when shuffling, Album gain otherwise. The default; behaves naturally regardless of how you’re listening.
  • Off — RG tags ignored.

Tagging your files

Rockbox does not write ReplayGain tags. Use one of:
  • loudgain — modern multi-format CLI (FLAC, MP3, Opus, OGG, M4A).
  • mp3gain — MP3 only, but lossless.
  • metaflac --add-replay-gain — FLAC, ships with flac.
Example:
After re-tagging, trigger a library rescan:

Configuring at runtime