Logo Search packages:      
Sourcecode: tangerine version File versions  Download package


    copyright            : (C) 2005 by Brian Nickel
    email                : brian.nickel@gmail.com
    based on             : id3v1genres.cpp from TagLib

 *   This library is free software; you can redistribute it and/or modify  *
 *   it  under the terms of the GNU Lesser General Public License version  *
 *   2.1 as published by the Free Software Foundation.                     *
 *                                                                         *
 *   This library is distributed in the hope that it will be useful, but   *
 *   WITHOUT ANY WARRANTY; without even the implied warranty of            *
 *   Lesser General Public License for more details.                       *
 *                                                                         *
 *   You should have received a copy of the GNU Lesser General Public      *
 *   License along with this library; if not, write to the Free Software   *
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
 *   USA                                                                   *

using System.Collections;
using System;

namespace TagLib.Id3v1
   public class GenreList
      public static readonly string [] Genres = {
         "Classic Rock",
         "New Age",
         "Death Metal",
         "Sound Clip",
         "Alternative Rock",
         "Instrumental Pop",
         "Instrumental Rock",
         "Southern Rock",
         "Top 40",
         "Christian Rap",
         "Native American",
         "New Wave",
         "Acid Punk",
         "Acid Jazz",
         "Rock & Roll",
         "Hard Rock",
         "National Folk",
         "Gothic Rock",
         "Progressive Rock",
         "Psychedelic Rock",
         "Symphonic Rock",
         "Slow Rock",
         "Big Band",
         "Easy Listening",
         "Chamber Music",
         "Booty Bass",
         "Porn Groove",
         "Slow Jam",
         "Power Ballad",
         "Rhythmic Soul",
         "Punk Rock",
         "Drum Solo",
         "A Cappella",
         "Dance Hall",
         "Drum & Bass",
         "Polsk Punk",
         "Christian Gangsta Rap",
         "Heavy Metal",
         "Black Metal",
         "Contemporary Christian",
         "Christian Rock",
         "Thrash Metal",
      public static string Genre (byte i)
        if(i >= 0 && i < Genres.Length)
          return Genres [i];
        return null;
      public static byte GenreIndex (string name)
         for (byte i = 0; i < Genres.Length; i ++)
            if (name == Genres [i])
               return i;
        return 255;
      private GenreList () {}

Generated by  Doxygen 1.6.0   Back to index