ReplayGainInfo: use CamelCase for struct name

This commit is contained in:
Max Kellermann
2013-10-25 19:09:22 +02:00
parent ed7891bf01
commit 6d475c40de
35 changed files with 123 additions and 133 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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)
{
}

View File

@@ -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);