synth_if.m (166322) | synth_if.m (166971) |
---|---|
1#- 2# Copyright (c) 2003 Mathew Kanner 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 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 24# SUCH DAMAGE. 25# | 1#- 2# Copyright (c) 2003 Mathew Kanner 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 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 24# SUCH DAMAGE. 25# |
26# $FreeBSD: head/sys/dev/sound/midi/synth_if.m 166322 2007-01-28 20:38:07Z joel $ | 26# $FreeBSD: head/sys/dev/sound/midi/synth_if.m 166971 2007-02-25 13:51:52Z netchild $ |
27# 28 29INTERFACE synth; 30 31#include <sys/systm.h> 32 33CODE { 34 --- 161 unchanged lines hidden (view full) --- 196 noalloc ( void /* x */ * _kbojt, uint8_t _chn, uint8_t _note) 197 { 198 printf("noalloc\n"); 199 return 0; 200 } 201} 202 203METHOD int killnote { | 27# 28 29INTERFACE synth; 30 31#include <sys/systm.h> 32 33CODE { 34 --- 161 unchanged lines hidden (view full) --- 196 noalloc ( void /* x */ * _kbojt, uint8_t _chn, uint8_t _note) 197 { 198 printf("noalloc\n"); 199 return 0; 200 } 201} 202 203METHOD int killnote { |
204 void /* X */ * _kobj; 205 uint8_t _chan; 206 uint8_t _note; 207 uint8_t _vel; | 204 void /* X */ *_kobj; 205 uint8_t _chan; 206 uint8_t _note; 207 uint8_t _vel; |
208} DEFAULT nokillnote; 209 210METHOD int startnote { | 208} DEFAULT nokillnote; 209 210METHOD int startnote { |
211 void /* X */ * _kobj; 212 uint8_t _voice; 213 uint8_t _note; 214 uint8_t _parm; | 211 void /* X */ *_kobj; 212 uint8_t _voice; 213 uint8_t _note; 214 uint8_t _parm; |
215} DEFAULT nostartnote; 216 217METHOD int setinstr { | 215} DEFAULT nostartnote; 216 217METHOD int setinstr { |
218 void /* X */ * _kobj; 219 uint8_t _chn; 220 uint16_t _patchno; | 218 void /* X */ *_kobj; 219 uint8_t _chn; 220 uint16_t _patchno; |
221} DEFAULT nosetinstr; 222 223METHOD int hwcontrol { | 221} DEFAULT nosetinstr; 222 223METHOD int hwcontrol { |
224 void /* X */ * _kobj; 225 uint8_t *_event; | 224 void /* X */ *_kobj; 225 uint8_t *_event; |
226} DEFAULT nohwcontrol; 227 228METHOD int aftertouch { | 226} DEFAULT nohwcontrol; 227 228METHOD int aftertouch { |
229 void /* X */ * _kobj; 230 uint8_t _x1; 231 uint8_t _x2; | 229 void /* X */ *_kobj; 230 uint8_t _x1; 231 uint8_t _x2; |
232} DEFAULT noaftertouch; 233 234METHOD int panning { | 232} DEFAULT noaftertouch; 233 234METHOD int panning { |
235 void /* X */ * _kobj; 236 uint8_t _x1; 237 uint8_t _x2; | 235 void /* X */ *_kobj; 236 uint8_t _x1; 237 uint8_t _x2; |
238} DEFAULT nopanning; 239 240METHOD int controller { | 238} DEFAULT nopanning; 239 240METHOD int controller { |
241 void /* X */ * _kobj; 242 uint8_t _x1; 243 uint8_t _x2; 244 uint16_t _x3; | 241 void /* X */ *_kobj; 242 uint8_t _x1; 243 uint8_t _x2; 244 uint16_t _x3; |
245} DEFAULT nocontroller; 246 247METHOD int volumemethod { | 245} DEFAULT nocontroller; 246 247METHOD int volumemethod { |
248 void /* X */ * _kobj; 249 uint8_t _x1; | 248 void /* X */ *_kobj; 249 uint8_t _x1; |
250} DEFAULT novolumemethod; 251 252METHOD int bender { | 250} DEFAULT novolumemethod; 251 252METHOD int bender { |
253 void /* X */ * _kobj; 254 uint8_t _voice; 255 uint16_t _bend; | 253 void /* X */ *_kobj; 254 uint8_t _voice; 255 uint16_t _bend; |
256} DEFAULT nobender; 257 258METHOD int setupvoice { | 256} DEFAULT nobender; 257 258METHOD int setupvoice { |
259 void /* X */ * _kobj; 260 uint8_t _voice; 261 uint8_t _chn; | 259 void /* X */ *_kobj; 260 uint8_t _voice; 261 uint8_t _chn; |
262} DEFAULT nosetupvoice; 263 264METHOD int sendsysex { | 262} DEFAULT nosetupvoice; 263 264METHOD int sendsysex { |
265 void /* X */ * _kobj; 266 void * _buf; 267 size_t _len; | 265 void /* X */ *_kobj; 266 void *_buf; 267 size_t _len; |
268} DEFAULT nosendsysex; 269 270METHOD int allocvoice { | 268} DEFAULT nosendsysex; 269 270METHOD int allocvoice { |
271 void /* X */ * _kobj; 272 uint8_t _chn; 273 uint8_t _note; 274 void *_x; | 271 void /* X */ *_kobj; 272 uint8_t _chn; 273 uint8_t _note; 274 void *_x; |
275} DEFAULT noallocvoice; 276 277METHOD int writeraw { | 275} DEFAULT noallocvoice; 276 277METHOD int writeraw { |
278 void /* X */ * _kobjt; 279 uint8_t * _buf; 280 size_t _len; | 278 void /* X */ *_kobjt; 279 uint8_t *_buf; 280 size_t _len; |
281} DEFAULT nowriteraw; 282 283METHOD int reset { | 281} DEFAULT nowriteraw; 282 283METHOD int reset { |
284 void /* X */ * _kobjt; | 284 void /* X */ *_kobjt; |
285} DEFAULT noreset; 286 287METHOD char * shortname { | 285} DEFAULT noreset; 286 287METHOD char * shortname { |
288 void /* X */ * _kobjt; | 288 void /* X */ *_kobjt; |
289} DEFAULT noshortname; 290 291METHOD int open { | 289} DEFAULT noshortname; 290 291METHOD int open { |
292 void /* X */ * _kobjt; 293 void * _sythn; 294 int _mode; | 292 void /* X */ *_kobjt; 293 void *_sythn; 294 int _mode; |
295} DEFAULT noopen; 296 297METHOD int close { | 295} DEFAULT noopen; 296 297METHOD int close { |
298 void /* X */ * _kobjt; | 298 void /* X */ *_kobjt; |
299} DEFAULT noclose; 300 301METHOD int query { | 299} DEFAULT noclose; 300 301METHOD int query { |
302 void /* X */ * _kobjt; | 302 void /* X */ *_kobjt; |
303} DEFAULT noquery; 304 305METHOD int insync { | 303} DEFAULT noquery; 304 305METHOD int insync { |
306 void /* X */ * _kobjt; | 306 void /* X */ *_kobjt; |
307} DEFAULT noinsync; 308 309METHOD int alloc { | 307} DEFAULT noinsync; 308 309METHOD int alloc { |
310 void /* x */ * _kbojt; 311 uint8_t _chn; 312 uint8_t _note; | 310 void /* x */ *_kbojt; 311 uint8_t _chn; 312 uint8_t _note; |
313} DEFAULT noalloc; | 313} DEFAULT noalloc; |