aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-23 02:26:02 +0000
committerDavid Robillard <d@drobilla.net>2012-08-23 02:26:02 +0000
commitb56c00df32611a1b5c25bb451d3d305723653287 (patch)
treead5da6f4f87d003f713ce78fa9289542784e2be0
parentcf1807b86ced9004a39525d94d706080360ec3a0 (diff)
downloadfomp.lv2-b56c00df32611a1b5c25bb451d3d305723653287.tar.gz
fomp.lv2-b56c00df32611a1b5c25bb451d3d305723653287.tar.bz2
fomp.lv2-b56c00df32611a1b5c25bb451d3d305723653287.zip
Update typedefs to actual correct LV2 types.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/fomp.lv2@4748 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/ladspaplugin.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/ladspaplugin.h b/src/ladspaplugin.h
index 08de649..61d1210 100644
--- a/src/ladspaplugin.h
+++ b/src/ladspaplugin.h
@@ -26,16 +26,14 @@
/* This class name is now a misnomer but I have left it as-is to minimize
fragmentation. The following typedefs serve the same purpose, so the
plugins can be built with the correct LV2 type (e.g. uint32_t instead of
- unsigned long) but the actual DSP code has only been changed to use the
- typedef rather than 'hard' switching it to the new type. This way, it
- should be straightforward to make the same code build as both LADSPA and LV2
- plugins, though since the upstream situation is unclear I have not done
- done so. ~ David Robillard, Aug. 2012 */
-
-typedef unsigned long SampleRate;
-typedef unsigned long SampleCount;
-typedef unsigned long PortIndex;
-typedef void PortData;
+ unsigned long) without 'hard' switching the DSP code to the new type. This
+ way, it should be straightforward to make the same code build as both LADSPA
+ and LV2 plugins, should the packages merge. ~ David Robillard, Aug. 2012 */
+
+typedef double SampleRate;
+typedef uint32_t SampleCount;
+typedef uint32_t PortIndex;
+typedef void PortData;
class LadspaPlugin
{