aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 23:09:54 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 23:09:54 +0000
commit78469da1b0554ccca9578242f54114770827c46e (patch)
tree1982da50af23c2662ad6899c2b53d9e5e560c1d9
parentc0aa37784f5f8add7dc7ac9cd3460549026686c5 (diff)
downloadmda.lv2-78469da1b0554ccca9578242f54114770827c46e.tar.gz
mda.lv2-78469da1b0554ccca9578242f54114770827c46e.tar.bz2
mda.lv2-78469da1b0554ccca9578242f54114770827c46e.zip
Fix a ton of warnings.
git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mda.lv2@4648 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--lvz/audioeffectx.h6
-rw-r--r--src/mdaBeatBox.cpp4
-rw-r--r--src/mdaCombo.cpp3
-rw-r--r--src/mdaDeEss.cpp2
-rw-r--r--src/mdaDegrade.cpp2
-rw-r--r--src/mdaDelay.cpp2
-rw-r--r--src/mdaDither.cpp4
-rw-r--r--src/mdaDubDelay.cpp4
-rw-r--r--src/mdaDynamics.cpp4
-rw-r--r--src/mdaImage.cpp2
-rw-r--r--src/mdaLeslie.cpp2
-rw-r--r--src/mdaLimiter.cpp2
-rw-r--r--src/mdaMultiBand.cpp2
-rw-r--r--src/mdaOverdrive.cpp2
-rw-r--r--src/mdaRePsycho.cpp2
-rw-r--r--src/mdaRezFilter.cpp4
-rw-r--r--src/mdaRingMod.cpp2
-rw-r--r--src/mdaRoundPan.cpp2
-rw-r--r--src/mdaShepard.cpp2
-rw-r--r--src/mdaStereo.cpp4
-rw-r--r--src/mdaTestTone.cpp8
-rw-r--r--src/mdaTracker.cpp2
-rw-r--r--src/mdaTransient.cpp2
23 files changed, 37 insertions, 32 deletions
diff --git a/lvz/audioeffectx.h b/lvz/audioeffectx.h
index 296bb06..b573129 100644
--- a/lvz/audioeffectx.h
+++ b/lvz/audioeffectx.h
@@ -29,6 +29,8 @@ class AudioEffect;
typedef int (*audioMasterCallback)(int, int ver, int, int, int, int);
+AudioEffect* createEffectInstance(audioMasterCallback audioMaster);
+
enum LvzPinFlags {
kLvzPinIsActive = 1<<0,
kLvzPinIsStereo = 1<<1
@@ -142,5 +144,9 @@ protected:
int32_t numPrograms;
};
+extern "C" {
+AudioEffectX* lvz_new_audioeffectx();
+}
+
#endif // LVZ_AUDIOEFFECTX_H
diff --git a/src/mdaBeatBox.cpp b/src/mdaBeatBox.cpp
index fa1c289..292ecae 100644
--- a/src/mdaBeatBox.cpp
+++ b/src/mdaBeatBox.cpp
@@ -267,8 +267,8 @@ void mdaBeatBox::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaBeatBox::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaCombo.cpp b/src/mdaCombo.cpp
index 69c8401..559c7ff 100644
--- a/src/mdaCombo.cpp
+++ b/src/mdaCombo.cpp
@@ -222,8 +222,7 @@ void mdaCombo::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaCombo::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaDeEss.cpp b/src/mdaDeEss.cpp
index 18a8096..1c66c2a 100644
--- a/src/mdaDeEss.cpp
+++ b/src/mdaDeEss.cpp
@@ -108,7 +108,7 @@ void mdaDeEss::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void long2string(long value, char *string) { sprintf(string, "%ld", value); }
+static void long2string(long value, char *string) { sprintf(string, "%ld", value); }
void mdaDeEss::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaDegrade.cpp b/src/mdaDegrade.cpp
index 69937ba..8120c87 100644
--- a/src/mdaDegrade.cpp
+++ b/src/mdaDegrade.cpp
@@ -152,7 +152,7 @@ void mdaDegrade::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaDegrade::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaDelay.cpp b/src/mdaDelay.cpp
index 6718fa0..66d3ead 100644
--- a/src/mdaDelay.cpp
+++ b/src/mdaDelay.cpp
@@ -173,7 +173,7 @@ void mdaDelay::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaDelay::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaDither.cpp b/src/mdaDither.cpp
index 34095fc..15daaaf 100644
--- a/src/mdaDither.cpp
+++ b/src/mdaDither.cpp
@@ -146,8 +146,8 @@ void mdaDither::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaDither::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaDubDelay.cpp b/src/mdaDubDelay.cpp
index 7a09da4..79b822a 100644
--- a/src/mdaDubDelay.cpp
+++ b/src/mdaDubDelay.cpp
@@ -166,8 +166,8 @@ void mdaDubDelay::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaDubDelay::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaDynamics.cpp b/src/mdaDynamics.cpp
index 65f7ce2..1743354 100644
--- a/src/mdaDynamics.cpp
+++ b/src/mdaDynamics.cpp
@@ -158,8 +158,8 @@ void mdaDynamics::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaDynamics::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaImage.cpp b/src/mdaImage.cpp
index 50d2ffa..308a930 100644
--- a/src/mdaImage.cpp
+++ b/src/mdaImage.cpp
@@ -164,7 +164,7 @@ void mdaImage::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaImage::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaLeslie.cpp b/src/mdaLeslie.cpp
index 865133b..7167b4e 100644
--- a/src/mdaLeslie.cpp
+++ b/src/mdaLeslie.cpp
@@ -215,7 +215,7 @@ void mdaLeslie::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaLeslie::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaLimiter.cpp b/src/mdaLimiter.cpp
index baaffde..2942196 100644
--- a/src/mdaLimiter.cpp
+++ b/src/mdaLimiter.cpp
@@ -135,7 +135,7 @@ void mdaLimiter::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaLimiter::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaMultiBand.cpp b/src/mdaMultiBand.cpp
index 9ae5c96..44f702f 100644
--- a/src/mdaMultiBand.cpp
+++ b/src/mdaMultiBand.cpp
@@ -221,7 +221,7 @@ void mdaMultiBand::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaMultiBand::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaOverdrive.cpp b/src/mdaOverdrive.cpp
index ea4d44c..fb42f0d 100644
--- a/src/mdaOverdrive.cpp
+++ b/src/mdaOverdrive.cpp
@@ -108,7 +108,7 @@ void mdaOverdrive::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaOverdrive::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaRePsycho.cpp b/src/mdaRePsycho.cpp
index 8c97cc8..370696e 100644
--- a/src/mdaRePsycho.cpp
+++ b/src/mdaRePsycho.cpp
@@ -157,7 +157,7 @@ void mdaRePsycho::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void long2string(long value, char *string) { sprintf(string, "%ld", value); }
+static void long2string(long value, char *string) { sprintf(string, "%ld", value); }
void mdaRePsycho::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaRezFilter.cpp b/src/mdaRezFilter.cpp
index 98d3da0..744696b 100644
--- a/src/mdaRezFilter.cpp
+++ b/src/mdaRezFilter.cpp
@@ -168,8 +168,8 @@ void mdaRezFilter::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaRezFilter::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaRingMod.cpp b/src/mdaRingMod.cpp
index d1dd260..615e4b4 100644
--- a/src/mdaRingMod.cpp
+++ b/src/mdaRingMod.cpp
@@ -111,7 +111,7 @@ void mdaRingMod::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaRingMod::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaRoundPan.cpp b/src/mdaRoundPan.cpp
index add46d9..d7af4f4 100644
--- a/src/mdaRoundPan.cpp
+++ b/src/mdaRoundPan.cpp
@@ -135,7 +135,7 @@ void mdaRoundPan::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaRoundPan::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaShepard.cpp b/src/mdaShepard.cpp
index 6bc56da..edf96ac 100644
--- a/src/mdaShepard.cpp
+++ b/src/mdaShepard.cpp
@@ -143,7 +143,7 @@ void mdaShepard::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaShepard::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaStereo.cpp b/src/mdaStereo.cpp
index aaa6038..40eb93b 100644
--- a/src/mdaStereo.cpp
+++ b/src/mdaStereo.cpp
@@ -193,8 +193,8 @@ void mdaStereo::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaStereo::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaTestTone.cpp b/src/mdaTestTone.cpp
index 96eee47..e2f736c 100644
--- a/src/mdaTestTone.cpp
+++ b/src/mdaTestTone.cpp
@@ -84,8 +84,8 @@ bool mdaTestTone::getProgramNameIndexed (int32_t category, int32_t index, char*
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
-void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void float2strng(float value, char *string) { sprintf(string, "%.2f", value); }
void mdaTestTone::setParameter(int32_t index, float value)
{
@@ -431,7 +431,7 @@ void mdaTestTone::process(float **inputs, float **outputs, int32_t sampleFrames)
break;
case 2: //noise
- #if WIN32
+ #ifdef _WIN32
case 3: x = (float)(rand() - 16384); //for RAND_MAX = 32767
#else //mac/gcc
case 3: x = (float)((rand() & 0x7FFF) - 16384);
@@ -520,7 +520,7 @@ void mdaTestTone::processReplacing(float **inputs, float **outputs, int32_t samp
break;
case 2: //noise
- #if WIN32
+ #ifdef _WIN32
case 3: x = (float)(rand() - 16384); //for RAND_MAX = 32767
#else //mac/gcc
case 3: x = (float)((rand() & 0x7FFF) - 16384);
diff --git a/src/mdaTracker.cpp b/src/mdaTracker.cpp
index f1c1d86..870b159 100644
--- a/src/mdaTracker.cpp
+++ b/src/mdaTracker.cpp
@@ -168,7 +168,7 @@ void mdaTracker::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaTracker::getParameterDisplay(int32_t index, char *text)
{
diff --git a/src/mdaTransient.cpp b/src/mdaTransient.cpp
index 8f435a6..c9a461b 100644
--- a/src/mdaTransient.cpp
+++ b/src/mdaTransient.cpp
@@ -156,7 +156,7 @@ void mdaTransient::getParameterName(int32_t index, char *label)
}
#include <stdio.h>
-void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
+static void int2strng(int32_t value, char *string) { sprintf(string, "%d", value); }
void mdaTransient::getParameterDisplay(int32_t index, char *text)
{