From 42cb454c24e2772696c281860e333becffc2e2ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 28 Mar 2012 04:51:46 +0000 Subject: Remove pointless int32 typedef. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4127 a436a847-0d15-0410-975c-d299462d15a1 --- src/mdaThruZero.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/mdaThruZero.cpp') diff --git a/src/mdaThruZero.cpp b/src/mdaThruZero.cpp index a35685f..a7bd16b 100644 --- a/src/mdaThruZero.cpp +++ b/src/mdaThruZero.cpp @@ -112,14 +112,14 @@ mdaThruZero::~mdaThruZero() ///destroy any buffers... } -void mdaThruZero::setProgram(LvzInt32 program) +void mdaThruZero::setProgram(int32_t program) { curProgram = program; resume(); } -void mdaThruZero::setParameter(LvzInt32 index, float value) +void mdaThruZero::setParameter(int32_t index, float value) { if(index==3) phi=0.0f; //reset cycle programs[curProgram].param[index] = value; @@ -127,10 +127,10 @@ void mdaThruZero::setParameter(LvzInt32 index, float value) } -float mdaThruZero::getParameter(LvzInt32 index) { return programs[curProgram].param[index]; } +float mdaThruZero::getParameter(int32_t index) { return programs[curProgram].param[index]; } void mdaThruZero::setProgramName(char *name) { strcpy(programs[curProgram].name, name); } void mdaThruZero::getProgramName(char *name) { strcpy(name, programs[curProgram].name); } -bool mdaThruZero::getProgramNameIndexed (LvzInt32 category, LvzInt32 index, char* name) +bool mdaThruZero::getProgramNameIndexed (int32_t category, int32_t index, char* name) { if ((unsigned int)index < NPROGS) { @@ -140,7 +140,7 @@ bool mdaThruZero::getProgramNameIndexed (LvzInt32 category, LvzInt32 index, char return false; } -void mdaThruZero::getParameterName(LvzInt32 index, char *label) +void mdaThruZero::getParameterName(int32_t index, char *label) { switch(index) { @@ -153,7 +153,7 @@ void mdaThruZero::getParameterName(LvzInt32 index, char *label) } -void mdaThruZero::getParameterDisplay(LvzInt32 index, char *text) +void mdaThruZero::getParameterDisplay(int32_t index, char *text) { char string[16]; float * param = programs[curProgram].param; @@ -171,7 +171,7 @@ void mdaThruZero::getParameterDisplay(LvzInt32 index, char *text) } -void mdaThruZero::getParameterLabel(LvzInt32 index, char *label) +void mdaThruZero::getParameterLabel(int32_t index, char *label) { switch(index) { @@ -182,7 +182,7 @@ void mdaThruZero::getParameterLabel(LvzInt32 index, char *label) } -void mdaThruZero::process(float **inputs, float **outputs, LvzInt32 sampleFrames) +void mdaThruZero::process(float **inputs, float **outputs, int32_t sampleFrames) { float *in1 = inputs[0]; float *in2 = inputs[1]; @@ -210,7 +210,7 @@ void mdaThruZero::process(float **inputs, float **outputs, LvzInt32 sampleFrames } -void mdaThruZero::processReplacing(float **inputs, float **outputs, LvzInt32 sampleFrames) +void mdaThruZero::processReplacing(float **inputs, float **outputs, int32_t sampleFrames) { float *in1 = inputs[0]; float *in2 = inputs[1]; @@ -218,7 +218,7 @@ void mdaThruZero::processReplacing(float **inputs, float **outputs, LvzInt32 sam float *out2 = outputs[1]; float a, b, f=fb, f1=fb1, f2=fb2, ph=phi; float ra=rat, de=dep, we=wet, dr=dry, ds=deps, dm=dem; - LvzInt32 tmp, tmpi, bp=bufpos; + int32_t tmp, tmpi, bp=bufpos; float tmpf; --in1; -- cgit v1.2.1