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