2 # Copyright (c) 2003 Mathew Kanner
5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the distribution.
14 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 # $FreeBSD: head/sys/dev/sound/midi/synth_if.m 166971 2007-02-25 13:51:52Z netchild $
31 #include <sys/systm.h>
35 synth_killnote_t nokillnote;
36 synth_startnote_t nostartnote;
37 synth_setinstr_t nosetinstr;
38 synth_hwcontrol_t nohwcontrol;
39 synth_aftertouch_t noaftertouch;
40 synth_panning_t nopanning;
41 synth_controller_t nocontroller;
42 synth_volumemethod_t novolumemethod;
43 synth_bender_t nobender;
44 synth_setupvoice_t nosetupvoice;
45 synth_sendsysex_t nosendsysex;
46 synth_allocvoice_t noallocvoice;
47 synth_writeraw_t nowriteraw;
48 synth_reset_t noreset;
49 synth_shortname_t noshortname;
51 synth_close_t noclose;
52 synth_query_t noquery;
53 synth_insync_t noinsync;
54 synth_alloc_t noalloc;
57 nokillnote(void *_kobj, uint8_t _chn, uint8_t _note, uint8_t _vel)
59 printf("nokillnote\n");
64 noopen(void *_kobj, void *_arg, int mode)
78 nostartnote(void *_kb, uint8_t _voice, uint8_t _note, uint8_t _parm)
80 printf("nostartnote\n");
85 nosetinstr(void *_kb, uint8_t _chn, uint16_t _patchno)
87 printf("nosetinstr\n");
92 nohwcontrol(void *_kb, uint8_t *_event)
94 printf("nohwcontrol\n");
99 noaftertouch ( void /* X */ * _kobj, uint8_t _x1, uint8_t _x2)
101 printf("noaftertouch\n");
106 nopanning ( void /* X */ * _kobj, uint8_t _x1, uint8_t _x2)
108 printf("nopanning\n");
113 nocontroller ( void /* X */ * _kobj, uint8_t _x1, uint8_t _x2, uint16_t _x3)
115 printf("nocontroller\n");
121 void /* X */ * _kobj,
124 printf("novolumemethod\n");
129 nobender ( void /* X */ * _kobj, uint8_t _voice, uint16_t _bend)
131 printf("nobender\n");
136 nosetupvoice ( void /* X */ * _kobj, uint8_t _voice, uint8_t _chn)
139 printf("nosetupvoice\n");
144 nosendsysex ( void /* X */ * _kobj, void * _buf, size_t _len)
146 printf("nosendsysex\n");
151 noallocvoice ( void /* X */ * _kobj, uint8_t _chn, uint8_t _note, void *_x)
153 printf("noallocvoice\n");
158 nowriteraw ( void /* X */ * _kobjt, uint8_t * _buf, size_t _len)
160 printf("nowriteraw\n");
165 noreset ( void /* X */ * _kobjt)
173 noshortname (void /* X */ * _kobjt)
175 printf("noshortname\n");
176 return "noshortname";
180 noclose ( void /* X */ * _kobjt)
188 noinsync (void /* X */ * _kobjt)
191 printf("noinsync\n");
196 noalloc ( void /* x */ * _kbojt, uint8_t _chn, uint8_t _note)
203 METHOD int killnote {
208 } DEFAULT nokillnote;
210 METHOD int startnote {
215 } DEFAULT nostartnote;
217 METHOD int setinstr {
221 } DEFAULT nosetinstr;
223 METHOD int hwcontrol {
226 } DEFAULT nohwcontrol;
228 METHOD int aftertouch {
232 } DEFAULT noaftertouch;
240 METHOD int controller {
245 } DEFAULT nocontroller;
247 METHOD int volumemethod {
250 } DEFAULT novolumemethod;
258 METHOD int setupvoice {
262 } DEFAULT nosetupvoice;
264 METHOD int sendsysex {
268 } DEFAULT nosendsysex;
270 METHOD int allocvoice {
275 } DEFAULT noallocvoice;
277 METHOD int writeraw {
278 void /* X */ *_kobjt;
281 } DEFAULT nowriteraw;
284 void /* X */ *_kobjt;
287 METHOD char * shortname {
288 void /* X */ *_kobjt;
289 } DEFAULT noshortname;
292 void /* X */ *_kobjt;
298 void /* X */ *_kobjt;
302 void /* X */ *_kobjt;
306 void /* X */ *_kobjt;
310 void /* x */ *_kbojt;