diff options
author | Max Kellermann <max@duempel.org> | 2010-07-20 00:02:27 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-07-20 22:58:42 +0200 |
commit | 6135419ac3b958c04422bcb68b0e34fe0dfaaf14 (patch) | |
tree | 9f8b53ae7a5624c0d45873ee05fb1060f12efdc4 /test | |
parent | 2bc5161e95e1e33445d6b7abf52c9d11bf631d33 (diff) | |
download | mpd-6135419ac3b958c04422bcb68b0e34fe0dfaaf14.tar.gz mpd-6135419ac3b958c04422bcb68b0e34fe0dfaaf14.tar.xz mpd-6135419ac3b958c04422bcb68b0e34fe0dfaaf14.zip |
test/run_decoder: dump replay gain
Diffstat (limited to 'test')
-rw-r--r-- | test/run_decoder.c | 13 |
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; } |