add support for new REPLAYGAIN_REFERENCE_LOUDNESS tag

This commit is contained in:
Josh Coalson
2006-09-14 00:40:03 +00:00
parent dcf04428fe
commit b292e75ebf
10 changed files with 100 additions and 31 deletions

View File

@@ -87,8 +87,8 @@ static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__St
}
else if (metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT)
{
double gain, peak;
if (grabbag__replaygain_load_from_vorbiscomment(metadata, cfg.replaygain.album_mode, /*strict=*/false, &gain, &peak))
double reference, gain, peak;
if (grabbag__replaygain_load_from_vorbiscomment(metadata, cfg.replaygain.album_mode, /*strict=*/false, &reference, &gain, &peak))
{
stream_data->has_replaygain = true;
stream_data->replay_scale = grabbag__replaygain_compute_scale_factor(peak, gain, (double)cfg.replaygain.preamp, !cfg.replaygain.hard_limit);