annotate frontend/mikmodux.h @ 21:eb5b14d0e054

Makefile unneeded rule mikmodux.h Fix MODULE
author darius
date Fri, 24 Apr 1998 08:04:39 +0000
parents e5529b6e3b1c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
1 #ifndef MIKMODUX_H
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
2 #define MIKMODUX_H
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
3
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
4 #define mikversion "-= MikMod *For Unix* 3.0 =-\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
5
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
6 #define mikbannerhead "\n" mikversion \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
7 " - main code by MikMak <mikmak@via.nl>\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
8 " - lotsa stuff by Jake Stine <dracoirs@epix.net>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
9
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
10 #define mikbannertail \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
11 " - interface / zip code by Steve McIntyre <stevem@chiark.greenend.org.uk>\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
12 " - playlist code, much other stuff by Peter Amstutz <amstpi@freenet.tlh.lf.us>\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
13 " - This program is SHAREWARE - Read MIKMOD.TXT for more info \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
14 " - Binary built on " __DATE__ " at " __TIME__
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
15
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
16 #ifdef OSS
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
17 #define mikbannerdriver1 \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
18 " - linux driver by Chris Conn <cconn@tohs.abacom.com>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
19 #ifdef ULTRA
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
20 #define mikbannerdriver mikbannerdriver1 "" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
21 " - ultra driver by Andy Lo A Foe <arloafoe@cs.vu.nl>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
22 #else
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
23 #define mikbannerdriver mikbannerdriver1
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
24 #endif /* ULTRA */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
25
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
26 #elif defined(SUN)
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
27 #define mikbannerdriver \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
28 " - Sun/Solaris driver by Valtteri Vuorikoski <vuori@sci.fi>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
29
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
30 #elif defined(SOLARIS)
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
31 #define mikbannerdriver \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
32 " - Sun/Solaris driver by Valtteri Vuorikoski <vuori@sci.fi>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
33
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
34 #elif defined(__alpha)
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
35 #define mikbannerdriver \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
36 " - AudioFile driver by Roine Gustafsson <e93_rog@e.kth.se>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
37
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
38 #elif defined(__hpux)
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
39 #define mikbannerdriver \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
40 " - HP-UX driver by Lutz Vieweg <lkv@mania.robin.de>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
41
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
42 #elif defined(SGI)
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
43 #define mikbannerdriver \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
44 " - SGI driver by Stephan Kanthak <kanthak@i6.informatik.rwth-aachen.de>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
45
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
46 #elif defined(AIX)
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
47 #define mikbannerdriver \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
48 " - AIX driver by Lutz Vieweg <lkv@mania.robin.de>\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
49
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
50 #endif /* driver definitions */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
51
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
52 #define mikbanner mikbannerhead mikbannerdriver mikbannertail
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
53 #define pausebanner \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
54 "'||''|. | '||' '|' .|'''.| '||''''| '||''|.\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
55 " || || ||| || | ||.. ' || . || || \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
56 " ||...|' | || || | ''|||. ||''| || ||\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
57 " || .''''|. || | . '|| || || ||\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
58 ".||. .|. .||. '|..' |'....|' .||.....|.||...|'\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
59
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
60 #define extractbanner \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
61 "'||''''| . . ||\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
62 " || . ... ....||. ... .. .... .... .||. ... .. ... ... . \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
63 " ||''| '|..' || ||' '''' .|| .| '' || || || || || || \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
64 " || .|. || || .|' || || || || || || |'' \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
65 ".||.....|.| ||. '|.'.||. '|..'|' '|...' '|.'.||..||. ||.'||||. \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
66 " .|....'\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
67 #define loadbanner \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
68 "'||' '|| ||\n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
69 " || ... .... .. || ... .. ... ... . \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
70 " || .| '|. '' .|| .' '|| || || || || || \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
71 " || || || .|' || |. || || || || |'' \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
72 ".||.....| '|..|' '|..'|' '|..'||. .||. .||. || .'||||. \n" \
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
73 " .|....'\n"
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
74
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
75 typedef struct {
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
76 unsigned int location;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
77 char *marker;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
78 char *command;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
79 char *listcmd;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
80 unsigned int nameoffset;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
81 } ARCHIVE;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
82
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
83 extern int firstinst, dispsamp;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
84
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
85 /**************************************************************************
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
86 ****** Playlist stuff: ****************************************************
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
87 **************************************************************************/
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
88
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
89 typedef struct {
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
90 char *modname; /* The name of the module, either its filename, or name in an archive */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
91 char *archive; /* The filename of the archive if the mod is in one. NULL if not */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
92
21
eb5b14d0e054 Makefile
darius
parents: 16
diff changeset
93 } MODULE;
16
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
94
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
95 typedef struct {
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
96 int current; /* Currenct playing mod */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
97 int total; /* Total number of mods */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
98 int status; /* Paused, playing etc */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
99 #define PL_PAUSED 0;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
100 #define PL_PLAYING 1;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
101 #define PL_STOPPED 2;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
102
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
103 MODULE *modules; /* Array of mods */
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
104 } PLAYLIST;
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
105
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
106
e5529b6e3b1c Inistal commit of the Cheesy Mod Player (tm)
darius
parents:
diff changeset
107 #endif