Tag Parser
6.4.0
C++ library for reading and writing MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska tags
id3
id3genres.cpp
Go to the documentation of this file.
1
#include "
./id3genres.h
"
2
3
using namespace
std
;
4
5
namespace
Media
{
6
15
const
char
**Id3Genres::genreNames()
16
{
17
static
const
char
*names[] = {
18
"Blues"
,
"Classic Rock"
,
"Country"
,
"Dance"
,
"Disco"
,
"Funk"
,
"Grunge"
,
19
"Hip-Hop"
,
"Jazz"
,
"Metal"
,
"New Age"
,
"Oldies"
,
"Other"
,
"Pop"
,
20
"R&B"
,
"Rap"
,
"Reggae"
,
"Rock"
,
"Techno"
,
"Industrial"
,
"Alternative"
,
21
"Ska"
,
"Death Metal"
,
"Pranks"
,
"Soundtrack"
,
"Euro-Techno"
,
"Ambient"
,
"Trip-Hop"
,
22
"Vocal"
,
"Jazz+Funk"
,
"Fusion"
,
"Trance"
,
"Classical"
,
"Instrumental"
,
"Acid"
,
23
"House"
,
"Game"
,
"Sound Clip"
,
"Gospel"
,
"Noise"
,
"AlternRock"
,
"Bass"
,
24
"Soul"
,
"Punk"
,
"Space"
,
"Meditative"
,
"Instrumental Pop"
,
"Instrumental Rock"
,
"Ethnic"
,
25
"Gothic"
,
"Darkwave"
,
"Techno-Industrial"
,
"Electronic"
,
"Pop-Folk"
,
"Eurodance"
,
"Dream"
,
26
"Southern Rock"
,
"Comedy"
,
"Cult"
,
"Gangsta"
,
"Top 40"
,
"Christian Rap"
,
"Pop/Funk"
,
27
"Jungle"
,
"Native American"
,
"Cabaret"
,
"New Wave"
,
"Psychadelic"
,
"Rave"
,
"Showtunes"
,
28
"Trailer"
,
"Lo-Fi"
,
"Tribal"
,
"Acid Punk"
,
"Acid Jazz"
,
"Polka"
,
"Retro"
,
29
"Musical"
,
"Rock & Roll"
,
"Hard Rock"
,
"Folk"
,
"Folk-Rock"
,
"National Folk"
,
"Swing"
,
30
"Fast Fusion"
,
"Bebob"
,
"Latin"
,
"Revival"
,
"Celtic"
,
"Bluegrass"
,
"Avantgarde"
,
31
"Gothic Rock"
,
"Progressive Rock"
,
"Psychedelic Rock"
,
"Symphonic Rock"
,
"Slow Rock"
,
"Big Band"
,
"Chorus"
,
32
"Easy Listening"
,
"Acoustic"
,
"Humour"
,
"Speech"
,
"Chanson"
,
"Opera"
,
"Chamber Music"
,
33
"Sonata"
,
"Symphony"
,
"Booty Bass"
,
"Primus"
,
"Porn Groove"
,
"Satire"
,
"Slow Jam"
,
34
"Club"
,
"Tango"
,
"Samba"
,
"Folklore"
,
"Ballad"
,
"Power Ballad"
,
"Rhythmic Soul"
,
35
"Freestyle"
,
"Duet"
,
"Punk Rock"
,
"Drum Solo"
,
"A capella"
,
"Euro-House"
,
"Dance Hall"
,
36
"Goa"
,
"Drum & Bass"
,
"Club-House"
,
"Hardcore Techno"
,
"Terror"
,
"Indie"
,
"BritPop"
,
37
"Negerpunk"
,
"Polsk Punk"
,
"Beat"
,
"Christian Gangsta Rap"
,
"Heavy Metal"
,
"Black Metal"
,
38
"Crossover"
,
"Contemporary Christian"
,
"Christian Rock"
,
"Merengue"
,
"Salsa"
,
"Thrash Metal"
,
39
"Anime"
,
"Jpop"
,
"Synthpop"
,
"Abstract"
,
"Art Rock"
,
"Baroque"
,
"Bhangra"
,
"Big Beat"
,
"Breakbeat"
,
40
"Chillout"
,
"Downtempo"
,
"Dub"
,
"EBM"
,
"Eclectic"
,
"Electro"
,
"Electroclash"
,
"Emo"
,
"Experimental"
,
41
"Garage"
,
"Global"
,
"IDM"
,
"Illbient"
,
"Industro-Goth"
,
"Jam Band"
,
"Krautrock"
,
"Leftfield"
,
"Lounge"
,
42
"Math Rock"
,
"New Romantic"
,
"Nu-Breakz"
,
"Post-Punk"
,
"Post-Rock"
,
"Psytrance"
,
"Shoegaze"
,
"Space Rock"
,
43
"Trop Rock"
,
"World Music"
,
"Neoclassical"
,
"Audiobook"
,
"Audio Theatre"
,
"Neue Deutsche Welle"
,
"Podcast"
,
44
"Indie Rock"
,
"G-Funk"
,
"Dubstep"
,
"Garage Rock"
,
"Psybient"
45
};
46
return
names;
47
}
48
52
int
Id3Genres::indexFromString(
const
string
&
genre
)
53
{
54
const
char
**ptr = genreNames();
55
for
(
int
index = 0; index < genreCount(); ++ptr, ++index) {
56
if
(genre == *ptr) {
57
return
index;
58
}
59
}
60
return
-1;
61
}
62
63
}
std
STL namespace.
id3genres.h
Media
Contains all classes and functions of the TagInfo library.
Definition:
exceptions.h:9
Media::VorbisCommentIds::genre
TAG_PARSER_EXPORT const char * genre()
Definition:
vorbiscommentids.h:73
Generated on Wed Aug 30 2017 23:24:46 for Tag Parser by
1.8.13