From aacf2412df1b5174423da0942b43bdd9e200bb1f Mon Sep 17 00:00:00 2001 From: Aldas Nabazas Date: Fri, 19 Sep 2008 07:30:35 +0300 Subject: [PATCH] tse3: fixed to build so enabling it by default again --- attic/tse3/compile-fix.patch | 47 ++++++++++++++++++++++++++++++++++++ attic/tse3/tse3.desc | 2 +- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 attic/tse3/compile-fix.patch diff --git a/attic/tse3/compile-fix.patch b/attic/tse3/compile-fix.patch new file mode 100644 index 000000000..9cceb4494 --- /dev/null +++ b/attic/tse3/compile-fix.patch @@ -0,0 +1,47 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: package/.../tse3/compile-fix.patch +# Copyright (C) 2008 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This patch file is dual-licensed. It is available under the license the +# patched project is licensed under, as long as it is an OpenSource license +# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms +# of the GNU General Public License as published by the Free Software +# Foundation; either version 2 of the License, or (at your option) any later +# version. +# --- SDE-COPYRIGHT-NOTE-END --- + +--- tse3-0.3.1.orig/src/tse3/plt/OSS.h ++++ tse3-0.3.1/src/tse3/plt/OSS.h +@@ -253,4 +253,28 @@ + } + } + ++#define _AWE_MODE_FLAG 0x80 ++#define _AWE_SET_CMD(p,dev,voice,cmd,p1,p2) \ ++{((char*)(p))[0] = SEQ_PRIVATE;\ ++ ((char*)(p))[1] = dev;\ ++ ((char*)(p))[2] = _AWE_MODE_FLAG|(cmd);\ ++ ((char*)(p))[3] = voice;\ ++ ((unsigned short*)(p))[2] = p1;\ ++ ((unsigned short*)(p))[3] = p2;} ++ ++#define _AWE_CMD(dev, voice, cmd, p1, p2) \ ++{_SEQ_NEEDBUF(8);\ ++ _AWE_SET_CMD(_seqbuf + _seqbufptr, dev, voice, cmd, p1, p2);\ ++ _SEQ_ADVBUF(8);} ++#define _AWE_DRUM_CHANNELS 0x0b ++#define AWE_DRUM_CHANNELS(dev,channels) _AWE_CMD(dev, 0, _AWE_DRUM_CHANNELS, ((channels) & 0xffff), ((channels) >> 16)) ++#define _AWE_CHANNEL_MODE 0x0a ++#define AWE_PLAY_MULTI 1 /* multi note voice mode */ ++#define AWE_SET_CHANNEL_MODE(dev,mode) _AWE_CMD(dev, 0, _AWE_CHANNEL_MODE, mode, 0) ++#define _AWE_TERMINATE_ALL 0x07 ++#define AWE_TERMINATE_ALL(dev) _AWE_CMD(dev, 0, _AWE_TERMINATE_ALL, 0, 0) ++#ifndef SAMPLE_TYPE_AWE32 ++#define SAMPLE_TYPE_AWE32 0x20 ++#endif ++ + #endif diff --git a/attic/tse3/tse3.desc b/attic/tse3/tse3.desc index faf56ed76..2abd60932 100644 --- a/attic/tse3/tse3.desc +++ b/attic/tse3/tse3.desc @@ -39,7 +39,7 @@ [L] GPL [S] Stable [V] 0.3.1 -[P] O -----5---9 192.600 +[P] X -----5---9 192.600 [D] 3095970751 tse3-0.3.1.tar.gz http://dl.sourceforge.net/sourceforge/tse3/