commit 327e68ef31df0da8338e6f6329ce7c1d9821eab4
parent 77125a8e803cf42e20dc7cc97d64cfb94ad7def1
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Sat, 17 Jul 2021 15:44:28 +0200
fix warnings
Diffstat:
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/source/synthLib/device.cpp b/source/synthLib/device.cpp
@@ -120,7 +120,7 @@ namespace synthLib
}
}
- void Device::setBlockSize(const size_t _size)
+ void Device::setBlockSize(const uint32_t _size)
{
m_nextLatency = _size;
}
diff --git a/source/synthLib/device.h b/source/synthLib/device.h
@@ -16,7 +16,7 @@ namespace synthLib
Device(uint32_t _memorySize, uint32_t _externalMemStartAddress);
virtual ~Device();
virtual void process(float** _inputs, float** _outputs, size_t _size, const std::vector<SMidiEvent>& _midiIn, std::vector<SMidiEvent>& _midiOut);
- void setBlockSize(size_t _size);
+ void setBlockSize(uint32_t _size);
uint32_t getLatencySamples() const { return m_nextLatency; }
void startDSPThread();
@@ -48,6 +48,6 @@ namespace synthLib
std::unique_ptr<dsp56k::DSPThread> m_dspThread;
std::vector<SMidiEvent> m_midiIn;
- size_t m_nextLatency = 0;
+ uint32_t m_nextLatency = 0;
};
}
diff --git a/source/synthLib/plugin.cpp b/source/synthLib/plugin.cpp
@@ -228,7 +228,7 @@ namespace synthLib
return &m_dummyBuffer[0];
}
- void Plugin::setBlockSize(size_t _blockSize)
+ void Plugin::setBlockSize(const uint32_t _blockSize)
{
std::lock_guard lock(m_lock);
m_device->setBlockSize(_blockSize);
diff --git a/source/synthLib/plugin.h b/source/synthLib/plugin.h
@@ -19,7 +19,7 @@ namespace synthLib
void addMidiEvent(const SMidiEvent& _ev);
void setSamplerate(float _samplerate);
- void setBlockSize(size_t _blockSize);
+ void setBlockSize(uint32_t _blockSize);
uint32_t getLatencySamples() const;