00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef JezabelPatchTool_included
00018 #define JezabelPatchTool_included
00019
00020 #include <vector>
00021 #include <jezabeltool.h>
00022
00023
00024
00025 struct JezabelPatchToolConnection {
00026 int child,port,chan;
00027 };
00028
00051 class JezabelPatchTool : public JezabelTool {
00052 public:
00053
00056 JezabelPatchTool(int input_ports, int output_ports);
00057
00058 virtual void activate();
00059 virtual void run(int samples);
00060 virtual void seek(JezabelPosition position);
00061 virtual JezabelPosition length();
00062 virtual void deactivate();
00063 virtual int blockSize();
00064 virtual const char *strerror();
00065 virtual void setBuffer(int port, JezabelData *buffer);
00066 virtual ~JezabelPatchTool();
00067
00072 void addChild(JezabelTool *child);
00073
00078 void connectChild(int nChild, int nPort, int nChan);
00079
00080 protected:
00081 int input_ports, output_ports;
00082 vector<JezabelTool *> children;
00083 int theBlockSize;
00084 bool configured;
00085 vector<JezabelData *> buffers;
00086 vector<JezabelPatchToolConnection> ioConnections;
00087 };
00088
00089 #endif
00090
00091