added an old version of mikmod for dos
[dosdemo] / libs / oldmik / src / drv_nos.c
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 #include <stdio.h>
14 #include "mikmod.h"
15
16
17 BOOL NS_IsThere(void)
18 {
19         return 1;
20 }
21
22
23 SWORD NS_SampleLoad(FILE *fp,ULONG s,ULONG a,ULONG b,UWORD f)
24 {
25         return 1;
26 }
27
28
29 void NS_SampleUnload(SWORD h)
30 {
31 }
32
33
34 BOOL NS_Init(void)
35 {
36         return 1;
37 }
38
39
40 void NS_Exit(void)
41 {
42 }
43
44
45 void NS_PlayStart(void)
46 {
47 }
48
49
50 void NS_PlayStop(void)
51 {
52 }
53
54
55 void NS_Update(void)
56 {
57 }
58
59
60 void NS_VoiceSetVolume(UBYTE voice,UBYTE vol)
61 {
62 }
63
64
65 void NS_VoiceSetFrequency(UBYTE voice,ULONG frq)
66 {
67 }
68
69
70 void NS_VoiceSetPanning(UBYTE voice,UBYTE pan)
71 {
72 }
73
74
75 void NS_VoicePlay(UBYTE voice,SWORD handle,ULONG start,ULONG size,ULONG reppos,ULONG repend,UWORD flags)
76 {
77 }
78
79
80 DRIVER drv_nos={
81         NULL,
82         "No Sound",
83         "MikMod Nosound Driver v2.0 - (c) Creative Silence",
84         NS_IsThere,
85         NS_SampleLoad,
86         NS_SampleUnload,
87         NS_Init,
88         NS_Exit,
89         NS_PlayStart,
90         NS_PlayStop,
91         NS_Update,
92         NS_VoiceSetVolume,
93         NS_VoiceSetFrequency,
94         NS_VoiceSetPanning,
95         NS_VoicePlay
96 };