Datasheet

VS1053b Datasheet
10 OPERATION
10.11.5 Ogg Vorbis
Parameter Address Usage
gain 0x1e2a Preferred Replay Gain offset
Ogg Vorbis decoding supports Replay Gain technology. The Replay Gain technology is used
to automatically give all songs a matching volume so that the user does not need to adjust the
volume setting between songs.
If the Ogg Vorbis decoder finds a REPLAYGAIN_ALBUM_GAIN tag in the song header, the tag
is parsed and the decoded gain setting is written to the gain parameter.
If REPLAYGAIN_ALBUM_GAIN is not available, REPLAYGAIN_TRACK_GAIN is used.
If even REPLAYGAIN_TRACK_GAIN is not available, a default of -6 dB (gain value -12) is set.
For more information about Replay Gain, see http://en.wikipedia.org/wiki/Replay_Gain and
http://www.replaygain.org/ .
The player software can use the gain value to adjust the volume level. Negative values mean
that the volume should be decreased, positive values mean that the volume should be in-
creased.
For example gain = -11 means that volume should be decreased by 5.5 dB (11/2 = 5.5),
and left and right attenuation should be increased by 11. When gain = 2 volume should be
increased by 1 dB (2/2 = 1.0), and left and right attenuation should be decreased by 2. Because
volume setting can not go above +0 dB, the value should be saturated.
Gain Volume SCI_VOL (Volume-Gain)
-11 (-5.5 dB) 0 (+0.0 dB) 0x0b0b (-5.5 dB)
-11 (-5.5 dB) 3 (-1.5 dB) 0x0e0e (-7.0 dB)
+2 (+1.0 dB) 0 (+0.0 dB) 0x0000 (+0.0 dB)
+2 (+1.0 dB) 1 (-0.5 dB) 0x0000 (+0.0 dB)
+2 (+1.0 dB) 4 (-2.0 dB) 0x0202 (-1.0 dB)
Version: 1.22, 2014-12-19 65