1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../tse3/oss.patch
5 # Copyright (C) 2009 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -urN tse3-0.3.1.orig/src/tse3/plt/OSS.h tse3-0.3.1/src/tse3/plt/OSS.h
18 --- tse3-0.3.1.orig/src/tse3/plt/OSS.h 2007-08-22 09:30:45.000000000 +0530
19 +++ tse3-0.3.1/src/tse3/plt/OSS.h 2007-08-22 09:31:02.000000000 +0530
24 +#define _AWE_MODE_FLAG 0x80
25 +#define _AWE_SET_CMD(p,dev,voice,cmd,p1,p2) \
26 +{((char*)(p))[0] = SEQ_PRIVATE;\
27 + ((char*)(p))[1] = dev;\
28 + ((char*)(p))[2] = _AWE_MODE_FLAG|(cmd);\
29 + ((char*)(p))[3] = voice;\
30 + ((unsigned short*)(p))[2] = p1;\
31 + ((unsigned short*)(p))[3] = p2;}
33 +#define _AWE_CMD(dev, voice, cmd, p1, p2) \
35 + _AWE_SET_CMD(_seqbuf + _seqbufptr, dev, voice, cmd, p1, p2);\
37 +#define _AWE_DRUM_CHANNELS 0x0b
38 +#define AWE_DRUM_CHANNELS(dev,channels) _AWE_CMD(dev, 0, _AWE_DRUM_CHANNELS, ((channels) & 0xffff), ((channels) >> 16))
39 +#define _AWE_CHANNEL_MODE 0x0a
40 +#define AWE_PLAY_MULTI 1 /* multi note voice mode */
41 +#define AWE_SET_CHANNEL_MODE(dev,mode) _AWE_CMD(dev, 0, _AWE_CHANNEL_MODE, mode, 0)
42 +#define _AWE_TERMINATE_ALL 0x07
43 +#define AWE_TERMINATE_ALL(dev) _AWE_CMD(dev, 0, _AWE_TERMINATE_ALL, 0, 0)
44 +#ifndef SAMPLE_TYPE_AWE32
45 +#define SAMPLE_TYPE_AWE32 0x20