Mercurial > ~darius > hgwebdir.cgi > mikmod
diff frontend/mikmodux.h @ 16:e5529b6e3b1c
Inistal commit of the Cheesy Mod Player (tm)
author | darius |
---|---|
date | Thu, 23 Apr 1998 07:35:49 +0000 |
parents | |
children | eb5b14d0e054 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/frontend/mikmodux.h Thu Apr 23 07:35:49 1998 +0000 @@ -0,0 +1,107 @@ +#ifndef MIKMODUX_H +#define MIKMODUX_H + +#define mikversion "-= MikMod *For Unix* 3.0 =-\n" + +#define mikbannerhead "\n" mikversion \ +" - main code by MikMak <mikmak@via.nl>\n" \ +" - lotsa stuff by Jake Stine <dracoirs@epix.net>\n" + +#define mikbannertail \ +" - interface / zip code by Steve McIntyre <stevem@chiark.greenend.org.uk>\n" \ +" - playlist code, much other stuff by Peter Amstutz <amstpi@freenet.tlh.lf.us>\n" \ +" - This program is SHAREWARE - Read MIKMOD.TXT for more info \n" \ +" - Binary built on " __DATE__ " at " __TIME__ + +#ifdef OSS +#define mikbannerdriver1 \ +" - linux driver by Chris Conn <cconn@tohs.abacom.com>\n" +#ifdef ULTRA +#define mikbannerdriver mikbannerdriver1 "" \ +" - ultra driver by Andy Lo A Foe <arloafoe@cs.vu.nl>\n" +#else +#define mikbannerdriver mikbannerdriver1 +#endif /* ULTRA */ + +#elif defined(SUN) +#define mikbannerdriver \ +" - Sun/Solaris driver by Valtteri Vuorikoski <vuori@sci.fi>\n" + +#elif defined(SOLARIS) +#define mikbannerdriver \ +" - Sun/Solaris driver by Valtteri Vuorikoski <vuori@sci.fi>\n" + +#elif defined(__alpha) +#define mikbannerdriver \ +" - AudioFile driver by Roine Gustafsson <e93_rog@e.kth.se>\n" + +#elif defined(__hpux) +#define mikbannerdriver \ +" - HP-UX driver by Lutz Vieweg <lkv@mania.robin.de>\n" + +#elif defined(SGI) +#define mikbannerdriver \ +" - SGI driver by Stephan Kanthak <kanthak@i6.informatik.rwth-aachen.de>\n" + +#elif defined(AIX) +#define mikbannerdriver \ +" - AIX driver by Lutz Vieweg <lkv@mania.robin.de>\n" + +#endif /* driver definitions */ + +#define mikbanner mikbannerhead mikbannerdriver mikbannertail +#define pausebanner \ +"'||''|. | '||' '|' .|'''.| '||''''| '||''|.\n" \ +" || || ||| || | ||.. ' || . || || \n" \ +" ||...|' | || || | ''|||. ||''| || ||\n" \ +" || .''''|. || | . '|| || || ||\n" \ +".||. .|. .||. '|..' |'....|' .||.....|.||...|'\n" + +#define extractbanner \ +"'||''''| . . ||\n" \ +" || . ... ....||. ... .. .... .... .||. ... .. ... ... . \n" \ +" ||''| '|..' || ||' '''' .|| .| '' || || || || || || \n" \ +" || .|. || || .|' || || || || || || |'' \n" \ +".||.....|.| ||. '|.'.||. '|..'|' '|...' '|.'.||..||. ||.'||||. \n" \ +" .|....'\n" +#define loadbanner \ +"'||' '|| ||\n" \ +" || ... .... .. || ... .. ... ... . \n" \ +" || .| '|. '' .|| .' '|| || || || || || \n" \ +" || || || .|' || |. || || || || |'' \n" \ +".||.....| '|..|' '|..'|' '|..'||. .||. .||. || .'||||. \n" \ +" .|....'\n" + +typedef struct { + unsigned int location; + char *marker; + char *command; + char *listcmd; + unsigned int nameoffset; +} ARCHIVE; + +extern int firstinst, dispsamp; + +/************************************************************************** +****** Playlist stuff: **************************************************** +**************************************************************************/ + +typedef struct { + char *modname; /* The name of the module, either its filename, or name in an archive */ + char *archive; /* The filename of the archive if the mod is in one. NULL if not */ + +} MODULES; + +typedef struct { + int current; /* Currenct playing mod */ + int total; /* Total number of mods */ + int status; /* Paused, playing etc */ +#define PL_PAUSED 0; +#define PL_PLAYING 1; +#define PL_STOPPED 2; + + MODULE *modules; /* Array of mods */ +} PLAYLIST; + + +#endif