summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/DSSINode.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-30 21:12:16 +0000
committerDavid Robillard <d@drobilla.net>2007-09-30 21:12:16 +0000
commit399ddfc5b1d4f1f131362d0439821778c6681b23 (patch)
treee8ca2536fa251f474817d0575bc3b4747c494954 /src/libs/engine/DSSINode.cpp
parentc40ddfc0eebbcb3333d6cc9e3df7fb62ecb45941 (diff)
downloadingen-399ddfc5b1d4f1f131362d0439821778c6681b23.tar.gz
ingen-399ddfc5b1d4f1f131362d0439821778c6681b23.tar.bz2
ingen-399ddfc5b1d4f1f131362d0439821778c6681b23.zip
Better design for process() signature (pass everything needed in a single object parameter).
Working port "monitoring" (connect an output to a control input, GUI will animate controller). git-svn-id: http://svn.drobilla.net/lad/ingen@788 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/DSSINode.cpp')
-rw-r--r--src/libs/engine/DSSINode.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/libs/engine/DSSINode.cpp b/src/libs/engine/DSSINode.cpp
index af9be208..1140d9bb 100644
--- a/src/libs/engine/DSSINode.cpp
+++ b/src/libs/engine/DSSINode.cpp
@@ -15,14 +15,15 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "DSSINode.hpp"
#include <map>
-#include <set>
+//#include <set>
+#include "DSSINode.hpp"
#include "ClientBroadcaster.hpp"
#include "interface/ClientInterface.hpp"
#include "InputPort.hpp"
#include "types.hpp"
#include "AudioBuffer.hpp"
+#include "ProcessContext.hpp"
using namespace std;
@@ -172,26 +173,26 @@ DSSINode::has_midi_input() const
void
-DSSINode::process(ProcessContext& context, SampleCount nframes, FrameTime start, FrameTime end)
+DSSINode::process(ProcessContext& context)
{
- NodeBase::pre_process(nframes, start, end);
+ NodeBase::pre_process(context);
if (_dssi_descriptor->run_synth) {
- convert_events(nframes);
- _dssi_descriptor->run_synth(_instances[0], nframes,
+ convert_events(context.nframes());
+ _dssi_descriptor->run_synth(_instances[0], context.nframes(),
_alsa_events, _encoded_events);
} else if (_dssi_descriptor->run_multiple_synths) {
- convert_events(nframes);
+ convert_events(context.nframes());
// I hate this stupid function
snd_seq_event_t* events[1] = { _alsa_events };
long unsigned events_sizes[1] = { _encoded_events };
- _dssi_descriptor->run_multiple_synths(1, _instances, nframes,
+ _dssi_descriptor->run_multiple_synths(1, _instances, context.nframes(),
events, events_sizes);
} else {
- LADSPANode::process(context, nframes, start, end);
+ LADSPANode::process(context);
}
- NodeBase::post_process(nframes, start, end);
+ NodeBase::post_process(context);
}