Mercurial > audlegacy-plugins
diff src/madplug/replaygain.c @ 2392:4ad6e7dfb389
imported 5298b10777b3 by Eugene Zagidullin.
- peak == 0 mean absence of gain/peak pair
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Fri, 15 Feb 2008 19:15:29 +0900 |
parents | 7d1411f80023 |
children | 809736eb47d9 |
line wrap: on
line diff
--- a/src/madplug/replaygain.c Fri Feb 15 19:13:35 2008 +0900 +++ b/src/madplug/replaygain.c Fri Feb 15 19:15:29 2008 +0900 @@ -247,12 +247,6 @@ free(value); } - if (file_info->replaygain_track_scale != -1 || file_info->replaygain_album_scale != -1) - { - file_info->has_replaygain = TRUE; - return 1; - } - return 0; } @@ -264,9 +258,10 @@ AUDDBG("f: read_replaygain\n"); - file_info->has_replaygain = FALSE; - file_info->replaygain_album_scale = -1; - file_info->replaygain_track_scale = -1; + file_info->replaygain_track_peak = 0.0; + file_info->replaygain_track_scale = 0.0; + file_info->replaygain_album_peak = 0.0; + file_info->replaygain_album_scale = 0.0; file_info->mp3gain_undo = -77; file_info->mp3gain_minmax = -77; @@ -336,10 +331,6 @@ } #endif - if (file_info->replaygain_album_scale != -1 - || file_info->replaygain_track_scale != -1) - file_info->has_replaygain = TRUE; - if (file_info->infile) aud_vfs_fseek(fp, curpos, SEEK_SET);