Browse Source

Minor clean-ups.

tags/2021-05-28
jules 12 years ago
parent
commit
f3d9c3ebe0
4 changed files with 6 additions and 57 deletions
  1. +3
    -27
      extras/audio plugin host/Source/FilterGraph.cpp
  2. +0
    -27
      extras/audio plugin host/Source/FilterGraph.h
  3. +1
    -2
      modules/juce_audio_processors/format/juce_AudioPluginFormat.h
  4. +2
    -1
      modules/juce_core/native/juce_posix_NamedPipe.cpp

+ 3
- 27
extras/audio plugin host/Source/FilterGraph.cpp View File

@@ -30,25 +30,6 @@
#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;
@@ -339,9 +320,7 @@ void FilterGraph::createNodeFromXml (const XmlElement& xml)
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;
m.fromBase64Encoding (state->getAllSubText());
@@ -359,13 +338,10 @@ XmlElement* FilterGraph::createXml() const
{
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)));
}
for (i = 0; i < graph.getNumConnections(); ++i)
for (int i = 0; i < graph.getNumConnections(); ++i)
{
const AudioProcessorGraph::Connection* const fc = graph.getConnection(i);


+ 0
- 27
extras/audio plugin host/Source/FilterGraph.h View File

@@ -32,33 +32,6 @@ class FilterGraph;
const char* const filenameSuffix = ".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.


+ 1
- 2
modules/juce_audio_processors/format/juce_AudioPluginFormat.h View File

@@ -34,8 +34,7 @@ class PluginDescription;
/**
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
{


+ 2
- 1
modules/juce_core/native/juce_posix_NamedPipe.cpp View File

@@ -177,7 +177,8 @@ void NamedPipe::close()
pimpl->stopReadOperation = true;
char buffer[1] = { 0 };
::write (pimpl->pipeIn, buffer, 1);
ssize_t done = ::write (pimpl->pipeIn, buffer, 1);
(void) done;
ScopedWriteLock sl (lock);
pimpl = nullptr;


Loading…
Cancel
Save