Skip to content

Latest commit

 

History

History
161 lines (110 loc) · 1.85 KB

drv_nos.c

File metadata and controls

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