tag_rva2: set "gain", not "peak"

RVA2 tags only store the "gain" value, there is no "peak" attribute.
This commit is contained in:
Max Kellermann 2010-07-20 22:32:55 +02:00
parent 172182b18f
commit 8b055c3127
2 changed files with 4 additions and 2 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.15.12 (2010/??/??)
* tags:
- rva2: set "gain", not "peak"
* decoders:
- wildmidi: support version 0.2.3

View File

@ -277,8 +277,8 @@ parse_rva2(struct id3_tag *tag, struct replay_gain_info *replay_gain_info)
voladj_float = (double) voladj_fixed / 512;
replay_gain_info->tuples[REPLAY_GAIN_TRACK].peak = voladj_float;
replay_gain_info->tuples[REPLAY_GAIN_ALBUM].peak = voladj_float;
replay_gain_info->tuples[REPLAY_GAIN_TRACK].gain = voladj_float;
replay_gain_info->tuples[REPLAY_GAIN_ALBUM].gain = voladj_float;
g_debug("parseRVA2: Relative Volume "
"%+.1f dB adjustment (%s)\n",