annotate playercode/drv_nos.c @ 6:d14fd386d182

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