| @@ -30,25 +30,6 @@ | |||||
| #include "GraphEditorPanel.h" | #include "GraphEditorPanel.h" | ||||
| //============================================================================== | |||||
| FilterConnection::FilterConnection (FilterGraph& owner_) | |||||
| : owner (owner_) | |||||
| { | |||||
| } | |||||
| FilterConnection::FilterConnection (const FilterConnection& other) | |||||
| : sourceFilterID (other.sourceFilterID), | |||||
| sourceChannel (other.sourceChannel), | |||||
| destFilterID (other.destFilterID), | |||||
| destChannel (other.destChannel), | |||||
| owner (other.owner) | |||||
| { | |||||
| } | |||||
| FilterConnection::~FilterConnection() | |||||
| { | |||||
| } | |||||
| //============================================================================== | //============================================================================== | ||||
| const int FilterGraph::midiChannelNumber = 0x1000; | const int FilterGraph::midiChannelNumber = 0x1000; | ||||
| @@ -339,9 +320,7 @@ void FilterGraph::createNodeFromXml (const XmlElement& xml) | |||||
| AudioProcessorGraph::Node::Ptr node (graph.addNode (instance, xml.getIntAttribute ("uid"))); | AudioProcessorGraph::Node::Ptr node (graph.addNode (instance, xml.getIntAttribute ("uid"))); | ||||
| const XmlElement* const state = xml.getChildByName ("STATE"); | |||||
| if (state != nullptr) | |||||
| if (const XmlElement* const state = xml.getChildByName ("STATE")) | |||||
| { | { | ||||
| MemoryBlock m; | MemoryBlock m; | ||||
| m.fromBase64Encoding (state->getAllSubText()); | m.fromBase64Encoding (state->getAllSubText()); | ||||
| @@ -359,13 +338,10 @@ XmlElement* FilterGraph::createXml() const | |||||
| { | { | ||||
| XmlElement* xml = new XmlElement ("FILTERGRAPH"); | XmlElement* xml = new XmlElement ("FILTERGRAPH"); | ||||
| int i; | |||||
| for (i = 0; i < graph.getNumNodes(); ++i) | |||||
| { | |||||
| for (int i = 0; i < graph.getNumNodes(); ++i) | |||||
| xml->addChildElement (createNodeXml (graph.getNode (i))); | xml->addChildElement (createNodeXml (graph.getNode (i))); | ||||
| } | |||||
| for (i = 0; i < graph.getNumConnections(); ++i) | |||||
| for (int i = 0; i < graph.getNumConnections(); ++i) | |||||
| { | { | ||||
| const AudioProcessorGraph::Connection* const fc = graph.getConnection(i); | const AudioProcessorGraph::Connection* const fc = graph.getConnection(i); | ||||
| @@ -32,33 +32,6 @@ class FilterGraph; | |||||
| const char* const filenameSuffix = ".filtergraph"; | const char* const filenameSuffix = ".filtergraph"; | ||||
| const char* const filenameWildcard = "*.filtergraph"; | const char* const filenameWildcard = "*.filtergraph"; | ||||
| //============================================================================== | |||||
| /** | |||||
| Represents a connection between two pins in a FilterGraph. | |||||
| */ | |||||
| class FilterConnection | |||||
| { | |||||
| public: | |||||
| //============================================================================== | |||||
| FilterConnection (FilterGraph& owner); | |||||
| FilterConnection (const FilterConnection& other); | |||||
| ~FilterConnection(); | |||||
| //============================================================================== | |||||
| uint32 sourceFilterID; | |||||
| int sourceChannel; | |||||
| uint32 destFilterID; | |||||
| int destChannel; | |||||
| //============================================================================== | |||||
| juce_UseDebuggingNewOperator | |||||
| private: | |||||
| FilterGraph& owner; | |||||
| FilterConnection& operator= (const FilterConnection&); | |||||
| }; | |||||
| //============================================================================== | //============================================================================== | ||||
| /** | /** | ||||
| A collection of filters and some connections between them. | A collection of filters and some connections between them. | ||||
| @@ -34,8 +34,7 @@ class PluginDescription; | |||||
| /** | /** | ||||
| The base class for a type of plugin format, such as VST, AudioUnit, LADSPA, etc. | The base class for a type of plugin format, such as VST, AudioUnit, LADSPA, etc. | ||||
| Use the static getNumFormats() and getFormat() calls to find the types | |||||
| of format that are available. | |||||
| @see AudioFormatManager | |||||
| */ | */ | ||||
| class JUCE_API AudioPluginFormat | class JUCE_API AudioPluginFormat | ||||
| { | { | ||||
| @@ -177,7 +177,8 @@ void NamedPipe::close() | |||||
| pimpl->stopReadOperation = true; | pimpl->stopReadOperation = true; | ||||
| char buffer[1] = { 0 }; | char buffer[1] = { 0 }; | ||||
| ::write (pimpl->pipeIn, buffer, 1); | |||||
| ssize_t done = ::write (pimpl->pipeIn, buffer, 1); | |||||
| (void) done; | |||||
| ScopedWriteLock sl (lock); | ScopedWriteLock sl (lock); | ||||
| pimpl = nullptr; | pimpl = nullptr; | ||||