Browse Source

Compile complains about not knowing variable type

tags/2020-07-14
Gitter Dude Filipe Coelho <falktx@falktx.com> 4 years ago
parent
commit
fd4f00243b
5 changed files with 14 additions and 14 deletions
  1. +1
    -1
      ports/dexed/source/PluginData.cpp
  2. +3
    -3
      ports/easySSP/source/dsp-utility/Buffer.h
  3. +5
    -5
      ports/easySSP/source/dsp-utility/SpectroCalculator.h
  4. +2
    -2
      ports/easySSP/source/dsp-utility/WindowFunction.h
  5. +3
    -3
      ports/juce-opl/source/windows.h

+ 1
- 1
ports/dexed/source/PluginData.cpp View File

@@ -225,7 +225,7 @@ void DexedAudioProcessor::resetToInitVoice() {
99, 99, 99, 99, 50, 50, 50, 50, 0, 0, 1, 35, 0, 0, 0, 1, 0, 3, 24,
73, 78, 73, 84, 32, 86, 79, 73, 67, 69 };
for(int i=0;i<sizeof(init_voice);i++) {
for(int i=0;i<(int)sizeof(init_voice);i++) {
data[i] = init_voice[i];
}
panic();


+ 3
- 3
ports/easySSP/source/dsp-utility/Buffer.h View File

@@ -122,7 +122,7 @@ public:
size_t hopCount = segmentLength / hopSize;
// TODO: sanity checks? hopSize < segmentLength and maybe segmentLength % hopSize == 0
for (int i = 0; i < hopCount; ++i)
for (int i = 0; i < (int)hopCount; ++i)
{
mBuffers.push_back(new SimpleBuffer<T>(segmentLength));
mBuffers[i]->clear(hopSize * i);
@@ -131,7 +131,7 @@ public:
virtual ~OverlappingBufferSequence()
{
for (int i = 0; i < mBuffers.size(); ++i)
for (int i = 0; i < (int)mBuffers.size(); ++i)
{
TOMATL_DELETE(mBuffers[i]);
}
@@ -144,7 +144,7 @@ public:
SimpleBuffer<T>* result = NULL;
size_t index = 0;
for (int i = 0; i < mBuffers.size(); ++i)
for (int i = 0; i < (int)mBuffers.size(); ++i)
{
mBuffers[i]->putOne(subject);


+ 5
- 5
ports/easySSP/source/dsp-utility/SpectroCalculator.h View File

@@ -56,7 +56,7 @@ namespace tomatl { namespace dsp {
{
TOMATL_BRACE_DELETE(mData);
for (int i = 0; i < mChannelCount; ++i)
for (int i = 0; i < (int)mChannelCount; ++i)
{
TOMATL_DELETE(mBuffers[i]);
}
@@ -70,14 +70,14 @@ namespace tomatl { namespace dsp {
{
mChannelCount = channelCount;
for (int i = 0; i < mBuffers.size(); ++i)
for (int i = 0; i < (int)mBuffers.size(); ++i)
{
TOMATL_DELETE(mBuffers[i]);
}
mBuffers.clear();
for (int i = 0; i < mChannelCount; ++i)
for (int i = 0; i < (int)mChannelCount; ++i)
{
mBuffers.push_back(new OverlappingBufferSequence<T>(mFftSize * 2, mFftSize));
}
@@ -121,7 +121,7 @@ namespace tomatl { namespace dsp {
{
bool processed = false;
for (int i = 0; i < mChannelCount; ++i)
for (int i = 0; i < (int)mChannelCount; ++i)
{
// As our signal is built entirely from real numbers, imaginary part will always be zero
mBuffers[i]->putOne(channels[i]);
@@ -147,7 +147,7 @@ namespace tomatl { namespace dsp {
if (chData != NULL)
{
// Apply window function to buffer
for (int s = 0; s < mFftSize; ++s)
for (int s = 0; s < (int)mFftSize; ++s)
{
mWindowFunction->applyFunction(chData + s * 2, s, 1, true);
}


+ 2
- 2
ports/easySSP/source/dsp-utility/WindowFunction.h View File

@@ -23,7 +23,7 @@ public:

if (periodicMode) ++length;

for (int i = 0; i < mLength; ++i)
for (int i = 0; i < (int)mLength; ++i)
{
mPrecalculated[i] = mFunction(i, length);
mScalingFactor += mPrecalculated[i];
@@ -40,7 +40,7 @@ public:

for (int i = start; i < end; ++i)
{
if (i >= 0 && i < mLength)
if (i >= 0 && i < (int)mLength)
{
signal[sample] *= mPrecalculated[i];



+ 3
- 3
ports/juce-opl/source/windows.h View File

@@ -59,11 +59,11 @@ void WriteConsole(DWORD conout,const char* strPtr,
{
std::string msgType = "NOTICE: ";
if (conout == -10)
if ((int)conout == -10)
msgType = "INPUT: ";
else if (conout == -11)
else if ((int)conout == -11)
msgType = "OUTPUT: ";
else if (conout == -12)
else if ((int)conout == -12)
msgType = "ERROR: ";
else
msgType = "NOTICE: ";


Loading…
Cancel
Save