|
|
|
@@ -50,8 +50,7 @@ class JUCE_API AudioProcessorGraph : public AudioProcessor, |
|
|
|
{
|
|
|
|
public:
|
|
|
|
//==============================================================================
|
|
|
|
/** Creates an empty graph.
|
|
|
|
*/
|
|
|
|
/** Creates an empty graph. */
|
|
|
|
AudioProcessorGraph();
|
|
|
|
|
|
|
|
/** Destructor.
|
|
|
|
@@ -152,7 +151,6 @@ public: |
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Deletes all nodes and connections from this graph.
|
|
|
|
|
|
|
|
Any processor objects in the graph will be deleted.
|
|
|
|
*/
|
|
|
|
void clear();
|
|
|
|
@@ -199,7 +197,6 @@ public: |
|
|
|
const Connection* getConnection (int index) const { return connections [index]; }
|
|
|
|
|
|
|
|
/** Searches for a connection between some specified channels.
|
|
|
|
|
|
|
|
If no such connection is found, this returns nullptr.
|
|
|
|
*/
|
|
|
|
const Connection* getConnectionBetween (uint32 sourceNodeId,
|
|
|
|
@@ -213,8 +210,7 @@ public: |
|
|
|
bool isConnected (uint32 possibleSourceNodeId,
|
|
|
|
uint32 possibleDestNodeId) const;
|
|
|
|
|
|
|
|
/** Returns true if it would be legal to connect the specified points.
|
|
|
|
*/
|
|
|
|
/** Returns true if it would be legal to connect the specified points. */
|
|
|
|
bool canConnect (uint32 sourceNodeId, int sourceChannelIndex,
|
|
|
|
uint32 destNodeId, int destChannelIndex) const;
|
|
|
|
|
|
|
|
@@ -226,21 +222,16 @@ public: |
|
|
|
bool addConnection (uint32 sourceNodeId, int sourceChannelIndex,
|
|
|
|
uint32 destNodeId, int destChannelIndex);
|
|
|
|
|
|
|
|
/** Deletes the connection with the specified index.
|
|
|
|
|
|
|
|
Returns true if a connection was actually deleted.
|
|
|
|
*/
|
|
|
|
/** Deletes the connection with the specified index. */
|
|
|
|
void removeConnection (int index);
|
|
|
|
|
|
|
|
/** Deletes any connection between two specified points.
|
|
|
|
|
|
|
|
Returns true if a connection was actually deleted.
|
|
|
|
*/
|
|
|
|
bool removeConnection (uint32 sourceNodeId, int sourceChannelIndex,
|
|
|
|
uint32 destNodeId, int destChannelIndex);
|
|
|
|
|
|
|
|
/** Removes all connections from the specified node.
|
|
|
|
*/
|
|
|
|
/** Removes all connections from the specified node. */
|
|
|
|
bool disconnectNode (uint32 nodeId);
|
|
|
|
|
|
|
|
/** Returns true if the given connection's channel numbers map on to valid
|
|
|
|
@@ -392,7 +383,7 @@ public: |
|
|
|
const String getProgramName (int) { return String::empty; }
|
|
|
|
void changeProgramName (int, const String&) { }
|
|
|
|
|
|
|
|
void getStateInformation (juce::MemoryBlock& destData);
|
|
|
|
void getStateInformation (juce::MemoryBlock&);
|
|
|
|
void setStateInformation (const void* data, int sizeInBytes);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|