"Fossies" - the Fresh Open Source Software Archive

Member "mp3info-0.8.5a/mp3info.h" (10 Nov 2006, 4248 Bytes) of package /linux/misc/old/mp3info-0.8.5a.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "mp3info.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2     mp3info.h - Header files for MP3Info
    3 
    4     Copyright (C) 2000-2006 Cedric Tefft <cedric@phreaker.net>
    5 
    6     This program is free software; you can redistribute it and/or modify
    7     it under the terms of the GNU General Public License as published by
    8     the Free Software Foundation; either version 2 of the License, or
    9     (at your option) any later version.
   10 
   11     This program is distributed in the hope that it will be useful,
   12     but WITHOUT ANY WARRANTY; without even the implied warranty of
   13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14     GNU General Public License for more details.
   15 
   16     You should have received a copy of the GNU General Public License
   17     along with this program; if not, write to the Free Software
   18     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   19 
   20   ***************************************************************************
   21 
   22   This program is based in part on MP3Info 0.5 by Ricardo Cerqueira <rmc@rccn.net>
   23 
   24 */
   25  
   26 #include <stdio.h>
   27 #include <stdlib.h>
   28 #include <unistd.h>
   29 #include <sys/stat.h>
   30 #include <ctype.h>
   31 #include <string.h>
   32 #ifdef __WIN32__
   33 #include "win32/curses.h"
   34 #define uint unsigned int
   35 #include <getopt.h>
   36 #ifdef __MINGW32__
   37 int truncate(const char *name, off_t length);
   38 #endif
   39 #else
   40 #include <curses.h>
   41 #endif
   42 #include <signal.h>
   43 #include "mp3tech.h"
   44 #include "textfunc.h"
   45 
   46 
   47 #define VERSION "MP3Info 0.8.5a"
   48 #define COPYRIGHT "Copyright (C) 2006 Cedric Tefft and Ricardo Cerqueira"
   49 #define MAXGENRE   147
   50 #define GENREROWS  50
   51 
   52 
   53 #ifdef __MAIN
   54 char *typegenre [MAXGENRE+2] = {
   55    "Blues","Classic Rock","Country","Dance","Disco","Funk","Grunge",
   56    "Hip-Hop","Jazz","Metal","New Age","Oldies","Other","Pop","R&B",
   57    "Rap","Reggae","Rock","Techno","Industrial","Alternative","Ska",
   58    "Death Metal","Pranks","Soundtrack","Euro-Techno","Ambient",
   59    "Trip-Hop","Vocal","Jazz+Funk","Fusion","Trance","Classical",
   60    "Instrumental","Acid","House","Game","Sound Clip","Gospel","Noise",
   61    "Alt. Rock","Bass","Soul","Punk","Space","Meditative",
   62    "Instrumental Pop","Instrumental Rock","Ethnic","Gothic",
   63    "Darkwave","Techno-Industrial","Electronic","Pop-Folk","Eurodance",
   64    "Dream","Southern Rock","Comedy","Cult","Gangsta Rap","Top 40",
   65    "Christian Rap","Pop/Funk","Jungle","Native American","Cabaret",
   66    "New Wave","Psychedelic","Rave","Showtunes","Trailer","Lo-Fi",
   67    "Tribal","Acid Punk","Acid Jazz","Polka","Retro","Musical",
   68    "Rock & Roll","Hard Rock","Folk","Folk/Rock","National Folk",
   69    "Swing","Fast-Fusion","Bebob","Latin","Revival","Celtic",
   70    "Bluegrass","Avantgarde","Gothic Rock","Progressive Rock",
   71    "Psychedelic Rock","Symphonic Rock","Slow Rock","Big Band",
   72    "Chorus","Easy Listening","Acoustic","Humour","Speech","Chanson",
   73    "Opera","Chamber Music","Sonata","Symphony","Booty Bass","Primus",
   74    "Porn Groove","Satire","Slow Jam","Club","Tango","Samba",
   75    "Folklore","Ballad","Power Ballad","Rhythmic Soul","Freestyle",
   76    "Duet","Punk Rock","Drum Solo","A Cappella","Euro-House",
   77    "Dance Hall","Goa","Drum & Bass","Club-House","Hardcore","Terror",
   78    "Indie","BritPop","Negerpunk","Polsk Punk","Beat",
   79    "Christian Gangsta Rap","Heavy Metal","Black Metal","Crossover",
   80    "Contemporary Christian","Christian Rock","Merengue","Salsa",
   81    "Thrash Metal","Anime","JPop","Synthpop",""
   82 };
   83 
   84 int galphagenreindex[MAXGENRE+2] = {
   85    148,123,74,73,34,99,40,20,26,145,90,
   86    116,41,135,85,96,138,89,0,107,132,65,88,
   87    104,102,97,136,61,141,1,32,128,112,57,140,
   88    2,139,58,125,3,50,22,4,55,127,122,120,
   89    98,52,48,124,25,54,84,81,115,80,119,5,
   90    30,36,59,126,38,91,49,6,79,129,137,7,
   91    35,100,131,19,46,47,33,146,29,8,63,86,
   92    71,45,142,9,77,82,64,133,10,66,39,11,
   93    103,12,75,134,53,62,13,109,117,23,108,92,
   94    93,67,121,43,14,15,68,16,76,87,118,78,
   95    17,143,114,110,69,21,111,95,105,42,37,24,
   96    56,44,101,83,94,106,147,113,51,18,130,144,
   97    60,70,31,72,27,28
   98 };
   99 
  100 
  101 int *alphagenreindex=&(galphagenreindex[1]);          
  102 
  103 #ifdef __WIN32__
  104     extern int  opterr,optind,optopt,optreset;
  105     extern char *optarg;
  106 #endif
  107 
  108 #else
  109     extern char *typegenre [MAXGENRE+2];
  110     extern int alphagenreindex [MAXGENRE+1];
  111     extern int galphagenreindex [MAXGENRE+2];
  112 #endif
  113 
  114 void tagedit_curs(char *filename, int filenum, int fileoutof, id3tag *tag);
  115 
  116