Mercurial > ~darius > hgwebdir.cgi > mikmod
comparison playercode/drv_nos.c @ 4:5d614bcc4287
Initial entry of mikmod into the CVS tree.
author | darius |
---|---|
date | Fri, 23 Jan 1998 16:05:08 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:71e20a32bd84 | 4:5d614bcc4287 |
---|---|
1 /* | |
2 | |
3 Name: | |
4 DRV_NOS.C | |
5 | |
6 Description: | |
7 Mikmod driver for no output on any soundcard, monitor, keyboard, or whatever :) | |
8 | |
9 Portability: | |
10 All systems - All compilers | |
11 | |
12 */ | |
13 | |
14 #include "mikmod.h" | |
15 | |
16 | |
17 static BOOL NS_IsThere(void) | |
18 { | |
19 return 1; | |
20 } | |
21 | |
22 | |
23 static SWORD NS_SampleLoad(SAMPLOAD *s, int type, FILE *fp) | |
24 { | |
25 return 0; | |
26 } | |
27 | |
28 | |
29 static void NS_SampleUnload(SWORD h) | |
30 { | |
31 } | |
32 | |
33 | |
34 static ULONG NS_SampleSpace(int type) | |
35 { | |
36 return 0; | |
37 } | |
38 | |
39 | |
40 static ULONG NS_SampleLength(int type, SAMPLE *s) | |
41 { | |
42 return s->length; | |
43 } | |
44 | |
45 | |
46 static BOOL NS_Init(void) | |
47 { | |
48 return 0; | |
49 } | |
50 | |
51 | |
52 static void NS_Exit(void) | |
53 { | |
54 } | |
55 | |
56 | |
57 static BOOL NS_Reset(void) | |
58 { | |
59 return 0; | |
60 } | |
61 | |
62 | |
63 static BOOL NS_PlayStart(void) | |
64 { | |
65 } | |
66 | |
67 | |
68 static void NS_PlayStop(void) | |
69 { | |
70 } | |
71 | |
72 | |
73 static void NS_Update(void) | |
74 { | |
75 } | |
76 | |
77 | |
78 static BOOL NS_SetNumVoices(void) | |
79 { | |
80 return 0; | |
81 } | |
82 | |
83 | |
84 static void NS_VoiceSetVolume(UBYTE voice,UWORD vol) | |
85 { | |
86 } | |
87 | |
88 | |
89 static void NS_VoiceSetFrequency(UBYTE voice,ULONG frq) | |
90 { | |
91 } | |
92 | |
93 | |
94 static void NS_VoiceSetPanning(UBYTE voice,ULONG pan) | |
95 { | |
96 } | |
97 | |
98 | |
99 static void NS_VoicePlay(UBYTE voice,SWORD handle,ULONG start,ULONG size,ULONG reppos,ULONG repend,UWORD flags) | |
100 { | |
101 } | |
102 | |
103 | |
104 static void NS_VoiceStop(UBYTE voice) | |
105 { | |
106 } | |
107 | |
108 | |
109 static BOOL NS_VoiceStopped(UBYTE voice) | |
110 { | |
111 return 0; | |
112 } | |
113 | |
114 | |
115 static void NS_VoiceReleaseSustain(UBYTE voice) | |
116 { | |
117 } | |
118 | |
119 | |
120 static SLONG NS_VoiceGetPosition(UBYTE voice) | |
121 { | |
122 return 0; | |
123 } | |
124 | |
125 | |
126 static ULONG NS_VoiceRealVolume(UBYTE voice) | |
127 { | |
128 return 0; | |
129 } | |
130 | |
131 | |
132 | |
133 MDRIVER drv_nos = | |
134 { NULL, | |
135 "No Sound", | |
136 "Nosound Driver v2.0 - (c) Creative Silence", | |
137 255,255, | |
138 NS_IsThere, | |
139 NS_SampleLoad, | |
140 NS_SampleUnload, | |
141 NS_SampleSpace, | |
142 NS_SampleLength, | |
143 NS_Init, | |
144 NS_Exit, | |
145 NS_Reset, | |
146 NS_SetNumVoices, | |
147 NS_PlayStart, | |
148 NS_PlayStop, | |
149 NS_Update, | |
150 NS_VoiceSetVolume, | |
151 NS_VoiceSetFrequency, | |
152 NS_VoiceSetPanning, | |
153 NS_VoicePlay, | |
154 NS_VoiceStop, | |
155 NS_VoiceStopped, | |
156 NS_VoiceReleaseSustain, | |
157 NS_VoiceGetPosition, | |
158 NS_VoiceRealVolume | |
159 }; | |
160 |