aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-20 18:42:43 +0200
committerMax Kellermann <max@duempel.org>2010-07-20 23:05:01 +0200
commit2f16f8e9f7ae0b631bcc7c6499aa201fe23d13e0 (patch)
treea73803459e1b1a7f55bb381b39a0d09c9c8bdd46 /src
parent4364b30c423d230568a4b4f47a0e3b5fa9ff831b (diff)
downloadmpd-2f16f8e9f7ae0b631bcc7c6499aa201fe23d13e0.tar.gz
mpd-2f16f8e9f7ae0b631bcc7c6499aa201fe23d13e0.tar.xz
mpd-2f16f8e9f7ae0b631bcc7c6499aa201fe23d13e0.zip
tag_rva2: name the CHANNEL_* enum
Diffstat (limited to 'src')
-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);