summaryrefslogtreecommitdiffstats
path: root/src/server/internals/Delay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/internals/Delay.cpp')
-rw-r--r--src/server/internals/Delay.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/server/internals/Delay.cpp b/src/server/internals/Delay.cpp
index a1b331ed..e3be103a 100644
--- a/src/server/internals/Delay.cpp
+++ b/src/server/internals/Delay.cpp
@@ -71,19 +71,23 @@ DelayNode::DelayNode(
_last_delay_time = default_delay;
_delay_samples = default_delay;
- _delay_port = new InputPort(bufs, this, "delay", 1, _polyphony, PortType::CONTROL, default_delay);
- _delay_port->set_property(uris.lv2_name, "Delay");
- _delay_port->set_property(uris.lv2_default, default_delay);
- _delay_port->set_property(uris.lv2_minimum, (float)(1.0/(double)srate));
- _delay_port->set_property(uris.lv2_maximum, MAX_DELAY_SECONDS);
+ _delay_port = new InputPort(bufs, this, "delay", 1, _polyphony,
+ PortType::CONTROL, bufs.forge().make(default_delay));
+ _delay_port->set_property(uris.lv2_name, bufs.forge().make("Delay"));
+ _delay_port->set_property(uris.lv2_default, bufs.forge().make(default_delay));
+ _delay_port->set_property(uris.lv2_minimum, bufs.forge().make((float)(1.0/(double)srate)));
+ _delay_port->set_property(uris.lv2_maximum, bufs.forge().make(MAX_DELAY_SECONDS));
_ports->at(0) = _delay_port;
- _in_port = new InputPort(bufs, this, "in", 0, 1, PortType::AUDIO, 0.0f);
- _in_port->set_property(uris.lv2_name, "Input");
+ _in_port = new InputPort(bufs, this, "in", 0, 1,
+ PortType::AUDIO, bufs.forge().make(0.0f));
+ _in_port->set_property(uris.lv2_name, bufs.forge().make("Input"));
_ports->at(1) = _in_port;
- _out_port = new OutputPort(bufs, this, "out", 0, 1, PortType::AUDIO, 0.0f);
- _out_port->set_property(uris.lv2_name, "Output");
+ _out_port = new OutputPort(bufs, this, "out", 0, 1,
+ PortType::AUDIO, bufs.forge().make(0.0f));
+ _out_port->set_property(uris.lv2_name,
+ bufs.forge().make("Output"));
_ports->at(2) = _out_port;
//_buffer = bufs.get(PortType::AUDIO, bufs.audio_buffer_size(buffer_length_frames), true);