aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tag_rva2.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tag_rva2.c b/src/tag_rva2.c
index 28002025b..bcc78500a 100644
--- a/src/tag_rva2.c
+++ b/src/tag_rva2.c
@@ -24,6 +24,18 @@
#include <glib.h>
#include <id3tag.h>
+enum rva2_channel {
+ CHANNEL_OTHER = 0x00,
+ CHANNEL_MASTER_VOLUME = 0x01,
+ CHANNEL_FRONT_RIGHT = 0x02,
+ CHANNEL_FRONT_LEFT = 0x03,
+ CHANNEL_BACK_RIGHT = 0x04,
+ CHANNEL_BACK_LEFT = 0x05,
+ CHANNEL_FRONT_CENTRE = 0x06,
+ CHANNEL_BACK_CENTRE = 0x07,
+ CHANNEL_SUBWOOFER = 0x08
+};
+
bool
tag_rva2_parse(struct id3_tag *tag, struct replay_gain_info *replay_gain_info)
{
@@ -33,18 +45,6 @@ tag_rva2_parse(struct id3_tag *tag, struct replay_gain_info *replay_gain_info)
id3_byte_t const *data;
id3_length_t length;
- enum {
- CHANNEL_OTHER = 0x00,
- CHANNEL_MASTER_VOLUME = 0x01,
- CHANNEL_FRONT_RIGHT = 0x02,
- CHANNEL_FRONT_LEFT = 0x03,
- CHANNEL_BACK_RIGHT = 0x04,
- CHANNEL_BACK_LEFT = 0x05,
- CHANNEL_FRONT_CENTRE = 0x06,
- CHANNEL_BACK_CENTRE = 0x07,
- CHANNEL_SUBWOOFER = 0x08
- };
-
/* relative volume adjustment information */
frame = id3_tag_findframe(tag, "RVA2", 0);