aboutsummaryrefslogtreecommitdiff
path: root/sc4pd/source/sc4pd.hpp
diff options
context:
space:
mode:
authorTim Blechmann <timblech@users.sourceforge.net>2004-08-03 09:56:19 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:11:56 +0200
commitb85f8bc7af3fda0f31af1c79a9f25145b8004705 (patch)
tree554d5322f8b26e35d287c4ae32557b4c9970cc55 /sc4pd/source/sc4pd.hpp
parent78431322cc77b9654fa4a2e2b1b42a9310cb9141 (diff)
works of one morning
svn path=/trunk/externals/tb/; revision=1906
Diffstat (limited to 'sc4pd/source/sc4pd.hpp')
-rw-r--r--sc4pd/source/sc4pd.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/sc4pd/source/sc4pd.hpp b/sc4pd/source/sc4pd.hpp
index d26e09e..f1f90e2 100644
--- a/sc4pd/source/sc4pd.hpp
+++ b/sc4pd/source/sc4pd.hpp
@@ -34,6 +34,9 @@
*/
+#ifndef _SC4PD_HPP
+#define _SC$PD_HPP
+
#include <flext.h>
#if !defined(FLEXT_VERSION) || (FLEXT_VERSION < 406)
@@ -51,8 +54,24 @@
#define CALCSLOPE(next,prev) ((next - prev) * 1/ Blocksize())
+
+//#define SAMPLERATE (unit->mRate->mSampleRate)
+#undef SAMPLERATE
+#define SAMPLERATE Samplerate()
+
+//#define BUFLENGTH (unit->mBufLength)
+#undef BUFLENGTH
+#define BUFLENGTH Blocksize()
+
+
+
/* to make sure the behaviour is consistent: */
#undef ZXP
#define ZXP(z) (*(z)++)
+
+
+
+
+#endif