Manual: Fix part 1 of FS#11874 - touchscreen region in the manual isn't 100% correct.
[kugel-rb.git] / apps / plugins / mikmod / drv_nos.c
blob08d70466d14a67d03cc172011bb8fbfe825cf188
1 /* MikMod sound library
2 (c) 1998, 1999, 2000 Miodrag Vallat and others - see file AUTHORS for
3 complete list.
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of
8 the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 02111-1307, USA.
21 /*==============================================================================
23 $Id: drv_nos.c,v 1.2 2005/03/30 19:09:11 realtech Exp $
25 Driver for no output
27 ==============================================================================*/
31 Written by Jean-Paul Mikkers <mikmak@via.nl>
35 #ifdef HAVE_CONFIG_H
36 #include "config.h"
37 #endif
39 #ifdef HAVE_UNISTD_H
40 #include <unistd.h>
41 #endif
43 #include "mikmod_internals.h"
45 #define ZEROLEN 32768
47 //static SBYTE *zerobuf=NULL;
49 static int NS_IsThere(void)
51 return 1;
54 static int NS_Init(void)
56 //zerobuf=(SBYTE*)MikMod_malloc(ZEROLEN);
57 return VC_Init();
60 static void NS_Exit(void)
62 VC_Exit();
63 //MikMod_free(zerobuf);
66 static void NS_Update(void)
68 //if (zerobuf)
69 // VC_WriteBytes(zerobuf,ZEROLEN);
72 MIKMODAPI MDRIVER drv_nos={
73 NULL,
74 "No Sound",
75 "Nosound Driver v3.0",
76 255,255,
77 "nosound",
78 NULL,
79 NULL,
80 NS_IsThere,
81 VC_SampleLoad,
82 VC_SampleUnload,
83 VC_SampleSpace,
84 VC_SampleLength,
85 NS_Init,
86 NS_Exit,
87 NULL,
88 VC_SetNumVoices,
89 VC_PlayStart,
90 VC_PlayStop,
91 NS_Update,
92 NULL,
93 VC_VoiceSetVolume,
94 VC_VoiceGetVolume,
95 VC_VoiceSetFrequency,
96 VC_VoiceGetFrequency,
97 VC_VoiceSetPanning,
98 VC_VoiceGetPanning,
99 VC_VoicePlay,
100 VC_VoiceStop,
101 VC_VoiceStopped,
102 VC_VoiceGetPosition,
103 VC_VoiceRealVolume
107 /* ex:set ts=4: */