aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_decoder.c')
-rw-r--r--test/run_decoder.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/run_decoder.c b/test/run_decoder.c
index 92112cef6..c997ebf8f 100644
--- a/test/run_decoder.c
+++ b/test/run_decoder.c
@@ -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;
}