aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-25 19:09:22 +0200
committerMax Kellermann <max@duempel.org>2013-10-25 19:12:38 +0200
commit6d475c40de567d778fa6f96c379687a8bf83f82b (patch)
tree6302688c49ab48a514b593812688610ca9da2b75 /test
parented7891bf014c5085240361d605a0eaf24f74e7df (diff)
downloadmpd-6d475c40de567d778fa6f96c379687a8bf83f82b.tar.gz
mpd-6d475c40de567d778fa6f96c379687a8bf83f82b.tar.xz
mpd-6d475c40de567d778fa6f96c379687a8bf83f82b.zip
ReplayGainInfo: use CamelCase for struct name
Diffstat (limited to 'test')
-rw-r--r--test/dump_playlist.cxx7
-rw-r--r--test/dump_rva2.cxx7
-rw-r--r--test/read_tags.cxx2
-rw-r--r--test/run_decoder.cxx7
4 files changed, 10 insertions, 13 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx
index 044b85d79..6517473d2 100644
--- a/test/dump_playlist.cxx
+++ b/test/dump_playlist.cxx
@@ -117,15 +117,14 @@ decoder_tag(gcc_unused Decoder &decoder,
void
decoder_replay_gain(gcc_unused Decoder &decoder,
- const struct replay_gain_info *replay_gain_info)
+ const ReplayGainInfo *rgi)
{
- const struct replay_gain_tuple *tuple =
- &replay_gain_info->tuples[REPLAY_GAIN_ALBUM];
+ const ReplayGainTuple *tuple = &rgi->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];
+ tuple = &rgi->tuples[REPLAY_GAIN_TRACK];
if (replay_gain_tuple_defined(tuple))
g_printerr("replay_gain[track]: gain=%f peak=%f\n",
tuple->gain, tuple->peak);
diff --git a/test/dump_rva2.cxx b/test/dump_rva2.cxx
index 3206f970a..a77568c99 100644
--- a/test/dump_rva2.cxx
+++ b/test/dump_rva2.cxx
@@ -66,10 +66,10 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- struct replay_gain_info replay_gain;
+ ReplayGainInfo replay_gain;
replay_gain_info_init(&replay_gain);
- bool success = tag_rva2_parse(tag, &replay_gain);
+ bool success = tag_rva2_parse(tag, replay_gain);
id3_tag_delete(tag);
if (!success) {
@@ -77,8 +77,7 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
- const struct replay_gain_tuple *tuple =
- &replay_gain.tuples[REPLAY_GAIN_ALBUM];
+ const ReplayGainTuple *tuple = &replay_gain.tuples[REPLAY_GAIN_ALBUM];
if (replay_gain_tuple_defined(tuple))
g_printerr("replay_gain[album]: gain=%f peak=%f\n",
tuple->gain, tuple->peak);
diff --git a/test/read_tags.cxx b/test/read_tags.cxx
index 9511072ff..12cc93aa6 100644
--- a/test/read_tags.cxx
+++ b/test/read_tags.cxx
@@ -105,7 +105,7 @@ decoder_tag(gcc_unused Decoder &decoder,
void
decoder_replay_gain(gcc_unused Decoder &decoder,
- gcc_unused const struct replay_gain_info *replay_gain_info)
+ gcc_unused const ReplayGainInfo *replay_gain_info)
{
}
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index 4d7228be3..53e6ede2a 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -127,15 +127,14 @@ decoder_tag(gcc_unused Decoder &decoder,
void
decoder_replay_gain(gcc_unused Decoder &decoder,
- const struct replay_gain_info *replay_gain_info)
+ const ReplayGainInfo *rgi)
{
- const struct replay_gain_tuple *tuple =
- &replay_gain_info->tuples[REPLAY_GAIN_ALBUM];
+ const ReplayGainTuple *tuple = &rgi->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];
+ tuple = &rgi->tuples[REPLAY_GAIN_TRACK];
if (replay_gain_tuple_defined(tuple))
g_printerr("replay_gain[track]: gain=%f peak=%f\n",
tuple->gain, tuple->peak);