If you do some searches on OPUS + loudness adjustment you will find they created something that is following neither ID3 nor Vorbis Comment protocols for that.
It's a bit of a mess.
Proposals for volume normalisation came after the release of both MP3 and Vorbis and there was no formally agreed upon implementation. Especially in the early days, it was largely at the discretion of different program vendors implementing their own algorithms.
Being the first new format introduced after the adoption of R128 - a broadcasting standard - Opus was arguably the first one to get it
right.
You will find the ReplayGain adjustments sometimes in 'R128...' tags, but I believe they are usually written in the fileheader. (so hidden from 'normal' view)
As per the RFC, Opus added two optional tags:
R128_TRACK_GAIN and
R128_ALBUM_GAIN.
Opus gain values are integers in the range an integer from -32768 to 32767:
Tag DefinitionsAny tools that add other tags probably do so to try and be backwards compatible with players expecting to find (non-standardised) replay gain values.
RVAD may be such a tag, though I've never seen it before and it would appear to be a red herring here.
A file header isn't a hidden area separate from the rest of the data. The name 'header' just refers to its location at the start of the file, before the audio data.
Unless you deliberately do something weird, all metadata values are written in a file header, whether it's MP3, FLAC, Opus or anything else.
A notable exception are ID3v1 tags, which weren't part of the original MP3 specs and are written after the audio data. A file
footer, if you will.
Vendors may choose to store sensitive information in a way that makes it harder to alter though. For example, iTunes stored song copyright and purchaser details in a way that couldn't be easily edited by end users. Read about QuickTime atoms if you want to see how complicated a company like Apple can make things.
But back to the original thread topic...
The Tag editor > Volume adjustment slider is something different than ReplayGain.
It's setting may also be written in the header, or maybe it only exists in MusicBee's database, I don't really know, but with some testing you should be able to figure that out.
As per tag values below, for FLAC and MP3 it looks like MusicBee just adds any gain adjustment value to the calculated amount before writing the tag. This makes sense, as there's no reason to know if a value is calculated or adjusted - we just want a final amount to adjust by.
After volume analysis on two copies of the same file:
FLAC: Unadjusted
REPLAYGAIN_TRACK_GAIN: -0.04 dB
REPLAYGAIN_TRACK_PEAK: 0.890106
REPLAYGAIN_ALBUM_GAIN: +0.04 dB
REPLAYGAIN_ALBUM_PEAK: 0.912440
FLAC: +1 dB adjustment
REPLAYGAIN_TRACK_GAIN: +0.96 dB
REPLAYGAIN_TRACK_PEAK: 0.890106
REPLAYGAIN_ALBUM_GAIN: +1.04 dB
REPLAYGAIN_ALBUM_PEAK: 0.912440
MP3: Unadjusted
replaygain_track_gain: +0.22 dB
replaygain_track_peak: 0.860118
replaygain_album_gain: +0.04 dB
replaygain_album_peak: 0.912440
MP3: +1 dB adjustment
replaygain_track_gain: +1.22 dB
replaygain_track_peak: 0.860118
replaygain_album_gain: +1.04 dB
replaygain_album_peak: 0.912440
However, it does appear there is a bug in Opus volume adjustment.
Opus: Unadjusted
R128_TRACK_GAIN : -22
R128_ALBUM_GAIN : 0
Opus: +1 dB adjustment
R128_TRACK_GAIN : -22
R128_ALBUM_GAIN : 0
It appears no adjustment is being made to the calculated gain amount before writing tag values to Opus files.