test/run_decoder: dump replay gain

This commit is contained in:
Max Kellermann 2010-07-20 00:02:27 +02:00
parent 2bc5161e95
commit 6135419ac3

View File

@ -139,8 +139,19 @@ decoder_tag(G_GNUC_UNUSED struct decoder *decoder,
float
decoder_replay_gain(G_GNUC_UNUSED struct decoder *decoder,
G_GNUC_UNUSED const struct replay_gain_info *replay_gain_info)
const struct replay_gain_info *replay_gain_info)
{
const struct replay_gain_tuple *tuple =
&replay_gain_info->tuples[REPLAY_GAIN_ALBUM];
if (replay_gain_tuple_defined(tuple))
g_printerr("replay_gain[album]: gain=%f peak=%f\n",
tuple->gain, tuple->peak);
tuple = &replay_gain_info->tuples[REPLAY_GAIN_TRACK];
if (replay_gain_tuple_defined(tuple))
g_printerr("replay_gain[track]: gain=%f peak=%f\n",
tuple->gain, tuple->peak);
return 0.0;
}