| 1 | /* | 
|---|
| 2 | Copyright (c) 2012, Broadcom Europe Ltd | 
|---|
| 3 | All rights reserved. | 
|---|
| 4 |  | 
|---|
| 5 | Redistribution and use in source and binary forms, with or without | 
|---|
| 6 | modification, are permitted provided that the following conditions are met: | 
|---|
| 7 | * Redistributions of source code must retain the above copyright | 
|---|
| 8 | notice, this list of conditions and the following disclaimer. | 
|---|
| 9 | * Redistributions in binary form must reproduce the above copyright | 
|---|
| 10 | notice, this list of conditions and the following disclaimer in the | 
|---|
| 11 | documentation and/or other materials provided with the distribution. | 
|---|
| 12 | * Neither the name of the copyright holder nor the | 
|---|
| 13 | names of its contributors may be used to endorse or promote products | 
|---|
| 14 | derived from this software without specific prior written permission. | 
|---|
| 15 |  | 
|---|
| 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | 
|---|
| 17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | 
|---|
| 18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | 
|---|
| 19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY | 
|---|
| 20 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | 
|---|
| 21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 
|---|
| 22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 
|---|
| 23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 
|---|
| 24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 
|---|
| 25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
|---|
| 26 | */ | 
|---|
| 27 |  | 
|---|
| 28 | /* ID3 genre byte translation table */ | 
|---|
| 29 | static const char* id3_genres[] = | 
|---|
| 30 | { | 
|---|
| 31 | "Blues", | 
|---|
| 32 | "Classic Rock", | 
|---|
| 33 | "Country", | 
|---|
| 34 | "Dance", | 
|---|
| 35 | "Disco", | 
|---|
| 36 | "Funk", | 
|---|
| 37 | "Grunge", | 
|---|
| 38 | "Hip-Hop", | 
|---|
| 39 | "Jazz", | 
|---|
| 40 | "Metal", | 
|---|
| 41 | "New Age", | 
|---|
| 42 | "Oldies", | 
|---|
| 43 | "Other", | 
|---|
| 44 | "Pop", | 
|---|
| 45 | "R&B", | 
|---|
| 46 | "Rap", | 
|---|
| 47 | "Reggae", | 
|---|
| 48 | "Rock", | 
|---|
| 49 | "Techno", | 
|---|
| 50 | "Industrial", | 
|---|
| 51 | "Alternative", | 
|---|
| 52 | "Ska", | 
|---|
| 53 | "Death Metal", | 
|---|
| 54 | "Pranks", | 
|---|
| 55 | "Soundtrack", | 
|---|
| 56 | "Euro-Techno", | 
|---|
| 57 | "Ambient", | 
|---|
| 58 | "Trip-Hop", | 
|---|
| 59 | "Vocal", | 
|---|
| 60 | "Jazz+Funk", | 
|---|
| 61 | "Fusion", | 
|---|
| 62 | "Trance", | 
|---|
| 63 | "Classical", | 
|---|
| 64 | "Instrumental", | 
|---|
| 65 | "Acid", | 
|---|
| 66 | "House", | 
|---|
| 67 | "Game", | 
|---|
| 68 | "Sound Clip", | 
|---|
| 69 | "Gospel", | 
|---|
| 70 | "Noise", | 
|---|
| 71 | "Alternative Rock", | 
|---|
| 72 | "Bass", | 
|---|
| 73 | "Soul", | 
|---|
| 74 | "Punk", | 
|---|
| 75 | "Space", | 
|---|
| 76 | "Meditative", | 
|---|
| 77 | "Instrumental Pop", | 
|---|
| 78 | "Instrumental Rock", | 
|---|
| 79 | "Ethnic", | 
|---|
| 80 | "Gothic", | 
|---|
| 81 | "Darkwave", | 
|---|
| 82 | "Techno-Industrial", | 
|---|
| 83 | "Electronic", | 
|---|
| 84 | "Pop-Folk", | 
|---|
| 85 | "Eurodance", | 
|---|
| 86 | "Dream", | 
|---|
| 87 | "Southern Rock", | 
|---|
| 88 | "Comedy", | 
|---|
| 89 | "Cult", | 
|---|
| 90 | "Gangsta", | 
|---|
| 91 | "Top 40", | 
|---|
| 92 | "Christian Rap", | 
|---|
| 93 | "Pop/Funk", | 
|---|
| 94 | "Jungle", | 
|---|
| 95 | "Native American", | 
|---|
| 96 | "Cabaret", | 
|---|
| 97 | "New Wave", | 
|---|
| 98 | "Psychadelic", | 
|---|
| 99 | "Rave", | 
|---|
| 100 | "Showtunes", | 
|---|
| 101 | "Trailer", | 
|---|
| 102 | "Lo-Fi", | 
|---|
| 103 | "Tribal", | 
|---|
| 104 | "Acid Punk", | 
|---|
| 105 | "Acid Jazz", | 
|---|
| 106 | "Polka", | 
|---|
| 107 | "Retro", | 
|---|
| 108 | "Musical", | 
|---|
| 109 | "Rock & Roll", | 
|---|
| 110 | "Hard Rock", | 
|---|
| 111 | "Folk", | 
|---|
| 112 | "Folk-Rock", | 
|---|
| 113 | "National Folk", | 
|---|
| 114 | "Swing", | 
|---|
| 115 | "Fast Fusion", | 
|---|
| 116 | "Bebob", | 
|---|
| 117 | "Latin", | 
|---|
| 118 | "Revival", | 
|---|
| 119 | "Celtic", | 
|---|
| 120 | "Bluegrass", | 
|---|
| 121 | "Avantgarde", | 
|---|
| 122 | "Gothic Rock", | 
|---|
| 123 | "Progressive Rock", | 
|---|
| 124 | "Psychedelic Rock", | 
|---|
| 125 | "Symphonic Rock", | 
|---|
| 126 | "Slow Rock", | 
|---|
| 127 | "Big Band", | 
|---|
| 128 | "Chorus", | 
|---|
| 129 | "Easy Listening", | 
|---|
| 130 | "Acoustic", | 
|---|
| 131 | "Humour", | 
|---|
| 132 | "Speech", | 
|---|
| 133 | "Chanson", | 
|---|
| 134 | "Opera", | 
|---|
| 135 | "Chamber Music", | 
|---|
| 136 | "Sonata", | 
|---|
| 137 | "Symphony", | 
|---|
| 138 | "Booty Bass", | 
|---|
| 139 | "Primus", | 
|---|
| 140 | "Porn Groove", | 
|---|
| 141 | "Satire", | 
|---|
| 142 | "Slow Jam", | 
|---|
| 143 | "Club", | 
|---|
| 144 | "Tango", | 
|---|
| 145 | "Samba", | 
|---|
| 146 | "Folklore", | 
|---|
| 147 | "Ballad", | 
|---|
| 148 | "Power Ballad", | 
|---|
| 149 | "Rhythmic Soul", | 
|---|
| 150 | "Freestyle", | 
|---|
| 151 | "Duet", | 
|---|
| 152 | "Punk Rock", | 
|---|
| 153 | "Drum Solo", | 
|---|
| 154 | "A capella", | 
|---|
| 155 | "Euro-House", | 
|---|
| 156 | "Dance Hall", | 
|---|
| 157 | "Goa", | 
|---|
| 158 | "Drum & Bass", | 
|---|
| 159 | "Club-House", | 
|---|
| 160 | "Hardcore", | 
|---|
| 161 | "Terror", | 
|---|
| 162 | "Indie", | 
|---|
| 163 | "BritPop", | 
|---|
| 164 | "Negerpunk", | 
|---|
| 165 | "Polsk Punk", | 
|---|
| 166 | "Beat", | 
|---|
| 167 | "Christian Gangsta Rap", | 
|---|
| 168 | "Heavy Metal", | 
|---|
| 169 | "Black Metal", | 
|---|
| 170 | "Crossover", | 
|---|
| 171 | "Contemporary Christian", | 
|---|
| 172 | "Christian Rock", | 
|---|
| 173 | "Merengue", | 
|---|
| 174 | "Salsa", | 
|---|
| 175 | "Thrash Metal", | 
|---|
| 176 | "Anime", | 
|---|
| 177 | "JPop", | 
|---|
| 178 | "SynthPop" | 
|---|
| 179 | }; | 
|---|
| 180 |  | 
|---|