Fix Windows build
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
6675a1e81d
commit
ecd8976d6e
1 changed files with 3 additions and 3 deletions
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
namespace DISTRHO {
|
namespace DISTRHO {
|
||||||
|
|
||||||
static constexpr const uint kModuleParameters = 24;
|
static constexpr const uint32_t kModuleParameters = 24;
|
||||||
|
|
||||||
struct CardinalPluginContext : rack::Context {
|
struct CardinalPluginContext : rack::Context {
|
||||||
uint32_t bufferSize;
|
uint32_t bufferSize;
|
||||||
|
|
@ -75,7 +75,7 @@ struct HostParameters : Module {
|
||||||
{
|
{
|
||||||
if (CardinalPluginContext* const pcontext = reinterpret_cast<CardinalPluginContext*>(APP))
|
if (CardinalPluginContext* const pcontext = reinterpret_cast<CardinalPluginContext*>(APP))
|
||||||
{
|
{
|
||||||
for (uint i=0; i<kModuleParameters; ++i)
|
for (uint32_t i=0; i<kModuleParameters; ++i)
|
||||||
outputs[i].setVoltage(parameters[i].process(sampleTime, pcontext->parameters[i]));
|
outputs[i].setVoltage(parameters[i].process(sampleTime, pcontext->parameters[i]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -86,7 +86,7 @@ struct HostParameters : Module {
|
||||||
{
|
{
|
||||||
const double fall = 1.0 / (double(pcontext->bufferSize) / e.sampleRate);
|
const double fall = 1.0 / (double(pcontext->bufferSize) / e.sampleRate);
|
||||||
|
|
||||||
for (uint i=0; i<kModuleParameters; ++i)
|
for (uint32_t i=0; i<kModuleParameters; ++i)
|
||||||
{
|
{
|
||||||
parameters[i].reset();
|
parameters[i].reset();
|
||||||
parameters[i].setRiseFall(fall, fall);
|
parameters[i].setRiseFall(fall, fall);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue