ReplayGainInfo: use CamelCase for struct name
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user