From 615ceaaf519d0c42a9215c4835e1f7348f2e5dca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Sep 2007 20:54:31 +0000 Subject: Remove useless InternalNode class. Percolate boolean polyphony down through Node class heirarchy (instead of integer). git-svn-id: http://svn.drobilla.net/lad/ingen@742 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/MidiNoteNode.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/libs/engine/MidiNoteNode.hpp') diff --git a/src/libs/engine/MidiNoteNode.hpp b/src/libs/engine/MidiNoteNode.hpp index c7110f91..34a926ff 100644 --- a/src/libs/engine/MidiNoteNode.hpp +++ b/src/libs/engine/MidiNoteNode.hpp @@ -19,11 +19,10 @@ #define MIDINOTENODE_H #include -#include "InternalNode.hpp" #include "types.hpp" +#include "NodeBase.hpp" #include "MidiBuffer.hpp" -using std::string; namespace Ingen { @@ -37,10 +36,10 @@ class OutputPort; * * \ingroup engine */ -class MidiNoteNode : public InternalNode +class MidiNoteNode : public NodeBase { public: - MidiNoteNode(const string& path, uint32_t poly, Patch* parent, SampleRate srate, size_t buffer_size); + MidiNoteNode(const std::string& path, bool polyphonic, Patch* parent, SampleRate srate, size_t buffer_size); ~MidiNoteNode(); bool prepare_poly(uint32_t poly); @@ -75,7 +74,6 @@ private: Raul::Array* _voices; Raul::Array* _prepared_voices; - uint32_t _prepared_poly; Key _keys[128]; bool _sustain; ///< Whether or not hold pedal is depressed -- cgit v1.2.1