[0] | 1 | //meta.h: |
---|
| 2 | |
---|
[704] | 3 | /* |
---|
[5381] | 4 | * Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2012 |
---|
[704] | 5 | * |
---|
| 6 | * This file is part of RoarAudio, |
---|
| 7 | * a cross-platform sound system for both, home and professional use. |
---|
| 8 | * See README for details. |
---|
| 9 | * |
---|
| 10 | * This file is free software; you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU Lesser General Public License version 3 |
---|
| 12 | * as published by the Free Software Foundation. |
---|
| 13 | * |
---|
| 14 | * RoarAudio is distributed in the hope that it will be useful, |
---|
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 17 | * GNU Lesser General Public License for more details. |
---|
| 18 | * |
---|
| 19 | * You should have received a copy of the GNU Lesser General Public License |
---|
| 20 | * along with this software; see the file COPYING. If not, write to |
---|
[3517] | 21 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
---|
| 22 | * Boston, MA 02110-1301, USA. |
---|
[704] | 23 | * |
---|
| 24 | * NOTE: Even though this file is LGPLed it (may) include GPLed files |
---|
| 25 | * so the license of this file is/may therefore downgraded to GPL. |
---|
| 26 | * See HACKING for details. |
---|
| 27 | */ |
---|
| 28 | |
---|
[0] | 29 | #ifndef _ROARAUDIO_META_H_ |
---|
| 30 | #define _ROARAUDIO_META_H_ |
---|
| 31 | |
---|
[877] | 32 | #define ROAR_META_TYPE_NONE 0 |
---|
| 33 | #define ROAR_META_TYPE_TITLE 1 |
---|
| 34 | #define ROAR_META_TYPE_ALBUM 2 |
---|
[2328] | 35 | #define ROAR_META_TYPE_AUTHOR 3 |
---|
| 36 | #define ROAR_META_TYPE_AUTOR ROAR_META_TYPE_AUTHOR |
---|
| 37 | #define ROAR_META_TYPE_ARTIST ROAR_META_TYPE_AUTHOR |
---|
[877] | 38 | #define ROAR_META_TYPE_VERSION 4 |
---|
| 39 | #define ROAR_META_TYPE_DATE 5 |
---|
| 40 | #define ROAR_META_TYPE_LICENSE 6 |
---|
| 41 | #define ROAR_META_TYPE_TRACKNUMBER 7 |
---|
| 42 | #define ROAR_META_TYPE_ORGANIZATION 8 |
---|
| 43 | #define ROAR_META_TYPE_DESCRIPTION 9 |
---|
| 44 | #define ROAR_META_TYPE_GENRE 10 |
---|
| 45 | #define ROAR_META_TYPE_LOCATION 11 |
---|
| 46 | #define ROAR_META_TYPE_CONTACT 12 |
---|
| 47 | #define ROAR_META_TYPE_STREAMURL 13 |
---|
| 48 | #define ROAR_META_TYPE_HOMEPAGE 14 |
---|
| 49 | #define ROAR_META_TYPE_THUMBNAIL 15 |
---|
| 50 | #define ROAR_META_TYPE_LENGTH 16 |
---|
| 51 | #define ROAR_META_TYPE_COMMENT 17 |
---|
| 52 | #define ROAR_META_TYPE_OTHER 18 |
---|
| 53 | #define ROAR_META_TYPE_FILENAME 19 |
---|
| 54 | #define ROAR_META_TYPE_FILEURL 20 |
---|
| 55 | #define ROAR_META_TYPE_SERVER 21 |
---|
| 56 | #define ROAR_META_TYPE_DURATION 22 |
---|
[2265] | 57 | #define ROAR_META_TYPE_WWW ROAR_META_TYPE_HOMEPAGE |
---|
[877] | 58 | #define ROAR_META_TYPE_WOAF 23 /* ID3: Official audio file webpage */ |
---|
| 59 | #define ROAR_META_TYPE_ENCODER 24 |
---|
| 60 | #define ROAR_META_TYPE_ENCODEDBY ROAR_META_TYPE_ENCODER |
---|
| 61 | #define ROAR_META_TYPE_YEAR 25 |
---|
| 62 | #define ROAR_META_TYPE_DISCID 26 |
---|
| 63 | #define ROAR_META_TYPE_RPG_TRACK_PEAK 27 |
---|
| 64 | #define ROAR_META_TYPE_RPG_TRACK_GAIN 28 |
---|
| 65 | #define ROAR_META_TYPE_RPG_ALBUM_PEAK 29 |
---|
| 66 | #define ROAR_META_TYPE_RPG_ALBUM_GAIN 30 |
---|
[2263] | 67 | #define ROAR_META_TYPE_HASH 31 |
---|
[3044] | 68 | #define ROAR_META_TYPE_SIGNALINFO 32 |
---|
| 69 | #define ROAR_META_TYPE_AUDIOINFO ROAR_META_TYPE_SIGNALINFO |
---|
| 70 | #define ROAR_META_TYPE_OFFSET 33 |
---|
[3074] | 71 | #define ROAR_META_TYPE_PERFORMER 34 |
---|
| 72 | #define ROAR_META_TYPE_COPYRIGHT 35 |
---|
[4666] | 73 | #define ROAR_META_TYPE_LIKENESS 36 |
---|
[4791] | 74 | #define ROAR_META_TYPE_COMPOSER 37 |
---|
| 75 | #define ROAR_META_TYPE_RIGHTS 38 |
---|
[4794] | 76 | #define ROAR_META_TYPE_ISRC 39 |
---|
| 77 | #define ROAR_META_TYPE_LANGUAGE 40 |
---|
| 78 | #define ROAR_META_TYPE_GTIN 41 |
---|
| 79 | #define ROAR_META_TYPE_ISBN ROAR_META_TYPE_GTIN |
---|
| 80 | #define ROAR_META_TYPE_EAN ROAR_META_TYPE_GTIN |
---|
| 81 | #define ROAR_META_TYPE_PUBLISHER 42 |
---|
[5054] | 82 | #define ROAR_META_TYPE_DISCNUMBER 43 |
---|
| 83 | #define ROAR_META_TYPE_SOURCEMEDIA 44 |
---|
| 84 | #define ROAR_META_TYPE_LABEL 45 |
---|
| 85 | #define ROAR_META_TYPE_LABELNO 46 |
---|
[0] | 86 | |
---|
| 87 | |
---|
[95] | 88 | #define ROAR_META_MODE_SET 0 |
---|
| 89 | #define ROAR_META_MODE_ADD 1 |
---|
| 90 | #define ROAR_META_MODE_DELETE 2 |
---|
| 91 | #define ROAR_META_MODE_CLEAR 3 |
---|
[1038] | 92 | #define ROAR_META_MODE_FINALIZE 4 |
---|
[95] | 93 | |
---|
[0] | 94 | #define ROAR_META_MAX_NAMELEN 32 |
---|
| 95 | |
---|
[87] | 96 | #define ROAR_META_MAX_PER_STREAM 16 |
---|
| 97 | |
---|
[0] | 98 | struct roar_meta { |
---|
| 99 | int type; |
---|
| 100 | char key[ROAR_META_MAX_NAMELEN]; |
---|
| 101 | char * value; |
---|
| 102 | }; |
---|
| 103 | |
---|
| 104 | #endif |
---|
| 105 | |
---|
| 106 | //ll |
---|