Class: WahWah::ID3::V1

Inherits:
Tag
  • Object
show all
Defined in:
lib/wahwah/id3/v1.rb

Constant Summary collapse

TAG_SIZE =
128
TAG_ID =
"TAG"
DEFAULT_ENCODING =
"iso-8859-1"
GENRES =
[
  # Standard Genres
  "Blues", "Classic Rock", "Country", "Dance", "Disco", "Funk", "Grunge",
  "Hip-Hop", "Jazz", "Metal", "New Age", "Oldies", "Other", "Pop",
  "R&B", "Rap", "Reggae", "Rock", "Techno", "Industrial", "Alternative",
  "Ska", "Death Metal", "Pranks", "Soundtrack", "Euro-Techno", "Ambient", "Trip-Hop",
  "Vocal", "Jazz+Funk", "Fusion", "Trance", "Classical", "Instrumental", "Acid",
  "House", "Game", "Sound Clip", "Gospel", "Noise", "AlternRock", "Bass",
  "Soul", "Punk", "Space", "Meditative", "Instrumental Pop", "Instrumental Rock", "Ethnic",
  "Gothic", "Darkwave", "Techno-Industrial", "Electronic", "Pop-Folk", "Eurodance", "Dream",
  "Southern Rock", "Comedy", "Cult", "Gangsta", "Top 40", "Christian Rap", "Pop/Funk",
  "Jungle", "Native American", "Cabaret", "New Wave", "Psychadelic", "Rave", "Showtunes",
  "Trailer", "Lo-Fi", "Tribal", "Acid Punk", "Acid Jazz", "Polka", "Retro",
  "Musical", "Rock & Roll", "Hard Rock",

  # Winamp Extended Genres
  "Folk", "Folk-Rock", "National Folk", "Swing", "Fast Fusion", "Bebob", "Latin",
  "Revival", "Celtic", "Bluegrass", "Avantgarde", "Gothic Rock", "Progressive Rock", "Psychedelic Rock",
  "Symphonic Rock", "Slow Rock", "Big Band", "Chorus", "Easy Listening", "Acoustic", "Humour",
  "Speech", "Chanson", "Opera", "Chamber Music", "Sonata", "Symphony", "Booty Bass",
  "Primus", "Porn Groove", "Satire", "Slow Jam", "Club", "Tango", "Samba",
  "Folklore", "Ballad", "Power Ballad", "Rhythmic Soul", "Freestyle", "Duet", "Punk Rock",
  "Drum Solo", "A capella", "Euro-House", "Dance Hall", "Goa", "Drum & Bass", "Club-House",
  "Hardcore Techno", "Terror", "Indie", "BritPop", "Negerpunk", "Polsk Punk", "Beat",
  "Christian Gangsta Rap", "Heavy Metal", "Black Metal", "Contemporary Christian", "Christian Rock",

  # Added on WinAmp 1.91
  "Merengue", "Salsa", "Thrash Metal", "Anime", "Jpop", "Synthpop",

  # Added on WinAmp 5.6
  "Abstract", "Art Rock", "Baroque", "Bhangra", "Big Beat", "Breakbeat", "Chillout",
  "Downtempo", "Dub", "EBM", "Eclectic", "Electro", "Electroclash", "Emo",
  "Experimental", "Garage", "Illbient", "Industro-Goth", "Jam Band", "Krautrock", "Leftfield",
  "Lounge", "Math Rock", "New Romantic", "Nu-Breakz", "Post-Punk", "Post-Rock", "Psytrance",
  "Shoegaze", "Space Rock", "Trop Rock", "World Music", "Neoclassical", "Audiobook", "Audio Theatre",
  "Neue Deutsche Welle", "Podcast", "Indie Rock", "G-Funk", "Dubstep", "Garage Rock", "Psybient"
]

Constants inherited from Tag

Tag::INSPECT_ATTRIBUTES, Tag::INTEGER_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Tag

#images, #initialize, #inspect

Constructor Details

This class inherits a constructor from WahWah::Tag

Instance Method Details

#sizeObject



47
48
49
# File 'lib/wahwah/id3/v1.rb', line 47

def size
  TAG_SIZE
end

#valid?Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/wahwah/id3/v1.rb', line 55

def valid?
  @id == TAG_ID
end

#versionObject



51
52
53
# File 'lib/wahwah/id3/v1.rb', line 51

def version
  "v1"
end