aboutsummaryrefslogtreecommitdiffstats
path: root/src/mdaRingMod.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-28 04:51:46 +0000
committerDavid Robillard <d@drobilla.net>2012-03-28 04:51:46 +0000
commit42cb454c24e2772696c281860e333becffc2e2ca (patch)
tree06fdd0f78a29a4cc0d10c08d12d2ef9636e16ba1 /src/mdaRingMod.cpp
parente878fbbae2d686d86848b5353747fd9e359cb2d0 (diff)
downloadmda.lv2-42cb454c24e2772696c281860e333becffc2e2ca.tar.gz
mda.lv2-42cb454c24e2772696c281860e333becffc2e2ca.tar.bz2
mda.lv2-42cb454c24e2772696c281860e333becffc2e2ca.zip
Remove pointless int32 typedef.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4127 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/mdaRingMod.cpp')
-rw-r--r--src/mdaRingMod.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mdaRingMod.cpp b/src/mdaRingMod.cpp
index 714650c..f2cd0b1 100644
--- a/src/mdaRingMod.cpp
+++ b/src/mdaRingMod.cpp
@@ -63,7 +63,7 @@ void mdaRingMod::getProgramName(char *name)
strcpy(name, programName);
}
-bool mdaRingMod::getProgramNameIndexed (LvzInt32 category, LvzInt32 index, char* name)
+bool mdaRingMod::getProgramNameIndexed (int32_t category, int32_t index, char* name)
{
if (index == 0)
{
@@ -73,7 +73,7 @@ bool mdaRingMod::getProgramNameIndexed (LvzInt32 category, LvzInt32 index, char*
return false;
}
-void mdaRingMod::setParameter(LvzInt32 index, float value)
+void mdaRingMod::setParameter(int32_t index, float value)
{
switch(index)
{
@@ -85,7 +85,7 @@ void mdaRingMod::setParameter(LvzInt32 index, float value)
ffb = 0.95f * fParam3;
}
-float mdaRingMod::getParameter(LvzInt32 index)
+float mdaRingMod::getParameter(int32_t index)
{
float v=0;
@@ -98,7 +98,7 @@ float mdaRingMod::getParameter(LvzInt32 index)
return v;
}
-void mdaRingMod::getParameterName(LvzInt32 index, char *label)
+void mdaRingMod::getParameterName(int32_t index, char *label)
{
switch(index)
{
@@ -109,20 +109,20 @@ void mdaRingMod::getParameterName(LvzInt32 index, char *label)
}
#include <stdio.h>
-void int2strng(LvzInt32 value, char *string) { sprintf(string, "%d", value); }
+void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void mdaRingMod::getParameterDisplay(LvzInt32 index, char *text)
+void mdaRingMod::getParameterDisplay(int32_t index, char *text)
{
switch(index)
{
- case 0: int2strng((LvzInt32)(100. * floor(160. * fParam1)), text); break;
- case 1: int2strng((LvzInt32)(100. * fParam2), text); break;
- case 2: int2strng((LvzInt32)(100. * fParam3), text); break;
+ case 0: int2strng((int32_t)(100. * floor(160. * fParam1)), text); break;
+ case 1: int2strng((int32_t)(100. * fParam2), text); break;
+ case 2: int2strng((int32_t)(100. * fParam3), text); break;
}
}
-void mdaRingMod::getParameterLabel(LvzInt32 index, char *label)
+void mdaRingMod::getParameterLabel(int32_t index, char *label)
{
switch(index)
{
@@ -135,7 +135,7 @@ void mdaRingMod::getParameterLabel(LvzInt32 index, char *label)
//--------------------------------------------------------------------------------
// process
-void mdaRingMod::process(float **inputs, float **outputs, LvzInt32 sampleFrames)
+void mdaRingMod::process(float **inputs, float **outputs, int32_t sampleFrames)
{
float *in1 = inputs[0];
float *in2 = inputs[1];
@@ -177,7 +177,7 @@ void mdaRingMod::process(float **inputs, float **outputs, LvzInt32 sampleFrames)
fprev = fp;
}
-void mdaRingMod::processReplacing(float **inputs, float **outputs, LvzInt32 sampleFrames)
+void mdaRingMod::processReplacing(float **inputs, float **outputs, int32_t sampleFrames)
{
float *in1 = inputs[0];
float *in2 = inputs[1];