103 {
104 static $GenreLookup = array(
105 0 => 'Blues',
106 1 => 'Classic Rock',
107 2 => 'Country',
108 3 => 'Dance',
109 4 => 'Disco',
110 5 => 'Funk',
111 6 => 'Grunge',
112 7 => 'Hip-Hop',
113 8 => 'Jazz',
114 9 => 'Metal',
115 10 => 'New Age',
116 11 => 'Oldies',
117 12 => 'Other',
118 13 => 'Pop',
119 14 => 'R&B',
120 15 => 'Rap',
121 16 => 'Reggae',
122 17 => 'Rock',
123 18 => 'Techno',
124 19 => 'Industrial',
125 20 => 'Alternative',
126 21 => 'Ska',
127 22 => 'Death Metal',
128 23 => 'Pranks',
129 24 => 'Soundtrack',
130 25 => 'Euro-Techno',
131 26 => 'Ambient',
132 27 => 'Trip-Hop',
133 28 => 'Vocal',
134 29 => 'Jazz+Funk',
135 30 => 'Fusion',
136 31 => 'Trance',
137 32 => 'Classical',
138 33 => 'Instrumental',
139 34 => 'Acid',
140 35 => 'House',
141 36 => 'Game',
142 37 => 'Sound Clip',
143 38 => 'Gospel',
144 39 => 'Noise',
145 40 => 'Alt. Rock',
146 41 => 'Bass',
147 42 => 'Soul',
148 43 => 'Punk',
149 44 => 'Space',
150 45 => 'Meditative',
151 46 => 'Instrumental Pop',
152 47 => 'Instrumental Rock',
153 48 => 'Ethnic',
154 49 => 'Gothic',
155 50 => 'Darkwave',
156 51 => 'Techno-Industrial',
157 52 => 'Electronic',
158 53 => 'Pop-Folk',
159 54 => 'Eurodance',
160 55 => 'Dream',
161 56 => 'Southern Rock',
162 57 => 'Comedy',
163 58 => 'Cult',
164 59 => 'Gangsta Rap',
165 60 => 'Top 40',
166 61 => 'Christian Rap',
167 62 => 'Pop/Funk',
168 63 => 'Jungle',
169 64 => 'Native American',
170 65 => 'Cabaret',
171 66 => 'New Wave',
172 67 => 'Psychedelic',
173 68 => 'Rave',
174 69 => 'Showtunes',
175 70 => 'Trailer',
176 71 => 'Lo-Fi',
177 72 => 'Tribal',
178 73 => 'Acid Punk',
179 74 => 'Acid Jazz',
180 75 => 'Polka',
181 76 => 'Retro',
182 77 => 'Musical',
183 78 => 'Rock & Roll',
184 79 => 'Hard Rock',
185 80 => 'Folk',
186 81 => 'Folk/Rock',
187 82 => 'National Folk',
188 83 => 'Swing',
189 84 => 'Fast-Fusion',
190 85 => 'Bebob',
191 86 => 'Latin',
192 87 => 'Revival',
193 88 => 'Celtic',
194 89 => 'Bluegrass',
195 90 => 'Avantgarde',
196 91 => 'Gothic Rock',
197 92 => 'Progressive Rock',
198 93 => 'Psychedelic Rock',
199 94 => 'Symphonic Rock',
200 95 => 'Slow Rock',
201 96 => 'Big Band',
202 97 => 'Chorus',
203 98 => 'Easy Listening',
204 99 => 'Acoustic',
205 100 => 'Humour',
206 101 => 'Speech',
207 102 => 'Chanson',
208 103 => 'Opera',
209 104 => 'Chamber Music',
210 105 => 'Sonata',
211 106 => 'Symphony',
212 107 => 'Booty Bass',
213 108 => 'Primus',
214 109 => 'Porn Groove',
215 110 => 'Satire',
216 111 => 'Slow Jam',
217 112 => 'Club',
218 113 => 'Tango',
219 114 => 'Samba',
220 115 => 'Folklore',
221 116 => 'Ballad',
222 117 => 'Power Ballad',
223 118 => 'Rhythmic Soul',
224 119 => 'Freestyle',
225 120 => 'Duet',
226 121 => 'Punk Rock',
227 122 => 'Drum Solo',
228 123 => 'A Cappella',
229 124 => 'Euro-House',
230 125 => 'Dance Hall',
231 126 => 'Goa',
232 127 => 'Drum & Bass',
233 128 => 'Club-House',
234 129 => 'Hardcore',
235 130 => 'Terror',
236 131 => 'Indie',
237 132 => 'BritPop',
238 133 => 'Negerpunk',
239 134 => 'Polsk Punk',
240 135 => 'Beat',
241 136 => 'Christian Gangsta Rap',
242 137 => 'Heavy Metal',
243 138 => 'Black Metal',
244 139 => 'Crossover',
245 140 => 'Contemporary Christian',
246 141 => 'Christian Rock',
247 142 => 'Merengue',
248 143 => 'Salsa',
249 144 => 'Trash Metal',
250 145 => 'Anime',
251 146 => 'JPop',
252 147 => 'Synthpop',
253
254 255 => 'Unknown',
255
256 'CR' => 'Cover',
257 'RX' => 'Remix'
258 );
259
260 static $GenreLookupSCMPX = array();
261 if ($allowSCMPXextended && empty($GenreLookupSCMPX)) {
262 $GenreLookupSCMPX = $GenreLookup;
263
264
265
266 $GenreLookupSCMPX[240] = 'Sacred';
267 $GenreLookupSCMPX[241] = 'Northern Europe';
268 $GenreLookupSCMPX[242] = 'Irish & Scottish';
269 $GenreLookupSCMPX[243] = 'Scotland';
270 $GenreLookupSCMPX[244] = 'Ethnic Europe';
271 $GenreLookupSCMPX[245] = 'Enka';
272 $GenreLookupSCMPX[246] = 'Children\'s Song';
273 $GenreLookupSCMPX[247] = 'Japanese Sky';
274 $GenreLookupSCMPX[248] = 'Japanese Heavy Rock';
275 $GenreLookupSCMPX[249] = 'Japanese Doom Rock';
276 $GenreLookupSCMPX[250] = 'Japanese J-POP';
277 $GenreLookupSCMPX[251] = 'Japanese Seiyu';
278 $GenreLookupSCMPX[252] = 'Japanese Ambient Techno';
279 $GenreLookupSCMPX[253] = 'Japanese Moemoe';
280 $GenreLookupSCMPX[254] = 'Japanese Tokusatsu';
281
282 }
283
284 return ($allowSCMPXextended ? $GenreLookupSCMPX : $GenreLookup);
285 }