mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-21 01:24:21 +00:00
New class LeakedObjectDetector, and JUCE_LEAK_DETECTOR macros for spotting leakages in a neat, cross-platform way. Used these to replace all the old juce_UseDebuggingNewOperator stuff in all the classes. Also some drawable and component transform fixes.
This commit is contained in:
parent
1629f9f66a
commit
a5cf4030f5
374 changed files with 2064 additions and 3331 deletions
|
|
@ -521,6 +521,7 @@
|
|||
C8441B7B3E4CCD4A257B4BFE = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_FileLogger.h; path = ../../src/core/juce_FileLogger.h; sourceTree = SOURCE_ROOT; };
|
||||
5B789AAC295BA4BB6D5AD4A3 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Initialisation.cpp; path = ../../src/core/juce_Initialisation.cpp; sourceTree = SOURCE_ROOT; };
|
||||
92ACFFCCCD1C85A0F8C6F80F = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Initialisation.h; path = ../../src/core/juce_Initialisation.h; sourceTree = SOURCE_ROOT; };
|
||||
DFE0DF77674CB28A2485FFDF = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_LeakedObjectDetector.h; path = ../../src/core/juce_LeakedObjectDetector.h; sourceTree = SOURCE_ROOT; };
|
||||
4555F03DBD059EEDECEF9F85 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Logger.cpp; path = ../../src/core/juce_Logger.cpp; sourceTree = SOURCE_ROOT; };
|
||||
63F44EC0485FCA050814967E = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Logger.h; path = ../../src/core/juce_Logger.h; sourceTree = SOURCE_ROOT; };
|
||||
94BDD1E20915D83AA6729D94 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_MathsFunctions.h; path = ../../src/core/juce_MathsFunctions.h; sourceTree = SOURCE_ROOT; };
|
||||
|
|
@ -1245,6 +1246,7 @@
|
|||
C8441B7B3E4CCD4A257B4BFE,
|
||||
5B789AAC295BA4BB6D5AD4A3,
|
||||
92ACFFCCCD1C85A0F8C6F80F,
|
||||
DFE0DF77674CB28A2485FFDF,
|
||||
4555F03DBD059EEDECEF9F85,
|
||||
63F44EC0485FCA050814967E,
|
||||
94BDD1E20915D83AA6729D94,
|
||||
|
|
|
|||
|
|
@ -386,6 +386,7 @@
|
|||
<File RelativePath="..\..\src\core\juce_FileLogger.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_Initialisation.cpp"/>
|
||||
<File RelativePath="..\..\src\core\juce_Initialisation.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_LeakedObjectDetector.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_Logger.cpp"/>
|
||||
<File RelativePath="..\..\src\core\juce_Logger.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_MathsFunctions.h"/>
|
||||
|
|
|
|||
|
|
@ -386,6 +386,7 @@
|
|||
<File RelativePath="..\..\src\core\juce_FileLogger.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_Initialisation.cpp"/>
|
||||
<File RelativePath="..\..\src\core\juce_Initialisation.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_LeakedObjectDetector.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_Logger.cpp"/>
|
||||
<File RelativePath="..\..\src\core\juce_Logger.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_MathsFunctions.h"/>
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@
|
|||
<File RelativePath="..\..\src\core\juce_FileLogger.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_Initialisation.cpp"/>
|
||||
<File RelativePath="..\..\src\core\juce_Initialisation.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_LeakedObjectDetector.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_Logger.cpp"/>
|
||||
<File RelativePath="..\..\src\core\juce_Logger.h"/>
|
||||
<File RelativePath="..\..\src\core\juce_MathsFunctions.h"/>
|
||||
|
|
|
|||
|
|
@ -529,6 +529,7 @@
|
|||
<ClInclude Include="..\..\src\core\juce_ByteOrder.h"/>
|
||||
<ClInclude Include="..\..\src\core\juce_FileLogger.h"/>
|
||||
<ClInclude Include="..\..\src\core\juce_Initialisation.h"/>
|
||||
<ClInclude Include="..\..\src\core\juce_LeakedObjectDetector.h"/>
|
||||
<ClInclude Include="..\..\src\core\juce_Logger.h"/>
|
||||
<ClInclude Include="..\..\src\core\juce_MathsFunctions.h"/>
|
||||
<ClInclude Include="..\..\src\core\juce_Memory.h"/>
|
||||
|
|
|
|||
|
|
@ -1509,6 +1509,9 @@
|
|||
<ClInclude Include="..\..\src\core\juce_Initialisation.h">
|
||||
<Filter>Juce\Source\core</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\core\juce_LeakedObjectDetector.h">
|
||||
<Filter>Juce\Source\core</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\core\juce_Logger.h">
|
||||
<Filter>Juce\Source\core</Filter>
|
||||
</ClInclude>
|
||||
|
|
|
|||
|
|
@ -521,6 +521,7 @@
|
|||
C8441B7B3E4CCD4A257B4BFE = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_FileLogger.h; path = ../../src/core/juce_FileLogger.h; sourceTree = SOURCE_ROOT; };
|
||||
5B789AAC295BA4BB6D5AD4A3 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Initialisation.cpp; path = ../../src/core/juce_Initialisation.cpp; sourceTree = SOURCE_ROOT; };
|
||||
92ACFFCCCD1C85A0F8C6F80F = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Initialisation.h; path = ../../src/core/juce_Initialisation.h; sourceTree = SOURCE_ROOT; };
|
||||
DFE0DF77674CB28A2485FFDF = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_LeakedObjectDetector.h; path = ../../src/core/juce_LeakedObjectDetector.h; sourceTree = SOURCE_ROOT; };
|
||||
4555F03DBD059EEDECEF9F85 = { isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; name = juce_Logger.cpp; path = ../../src/core/juce_Logger.cpp; sourceTree = SOURCE_ROOT; };
|
||||
63F44EC0485FCA050814967E = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_Logger.h; path = ../../src/core/juce_Logger.h; sourceTree = SOURCE_ROOT; };
|
||||
94BDD1E20915D83AA6729D94 = { isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = juce_MathsFunctions.h; path = ../../src/core/juce_MathsFunctions.h; sourceTree = SOURCE_ROOT; };
|
||||
|
|
@ -1245,6 +1246,7 @@
|
|||
C8441B7B3E4CCD4A257B4BFE,
|
||||
5B789AAC295BA4BB6D5AD4A3,
|
||||
92ACFFCCCD1C85A0F8C6F80F,
|
||||
DFE0DF77674CB28A2485FFDF,
|
||||
4555F03DBD059EEDECEF9F85,
|
||||
63F44EC0485FCA050814967E,
|
||||
94BDD1E20915D83AA6729D94,
|
||||
|
|
|
|||
|
|
@ -427,6 +427,8 @@
|
|||
file="src/core/juce_Initialisation.cpp"/>
|
||||
<FILE id="nsfdNZAs" name="juce_Initialisation.h" compile="0" resource="0"
|
||||
file="src/core/juce_Initialisation.h"/>
|
||||
<FILE id="hRYAldz" name="juce_LeakedObjectDetector.h" compile="0" resource="0"
|
||||
file="src/core/juce_LeakedObjectDetector.h"/>
|
||||
<FILE id="43AWfo8b2" name="juce_Logger.cpp" compile="1" resource="0"
|
||||
file="src/core/juce_Logger.cpp"/>
|
||||
<FILE id="KrXxapCit" name="juce_Logger.h" compile="0" resource="0"
|
||||
|
|
|
|||
|
|
@ -626,9 +626,9 @@ static const unsigned char temp_356ba65f[] =
|
|||
" void getStateInformation (MemoryBlock& destData);\r\n"
|
||||
" void setStateInformation (const void* data, int sizeInBytes);\r\n"
|
||||
"\r\n"
|
||||
"private:\r\n"
|
||||
" //==============================================================================\r\n"
|
||||
" juce_UseDebuggingNewOperator\r\n"
|
||||
"\r\n"
|
||||
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FILTERCLASSNAME);\r\n"
|
||||
"};\r\n"
|
||||
"\r\n"
|
||||
"#endif // HEADERGUARD\r\n";
|
||||
|
|
@ -855,12 +855,9 @@ static const unsigned char temp_ae1b823a[] =
|
|||
" implementation calls the superclass's method.\r\n"
|
||||
" */\r\n"
|
||||
"\r\n"
|
||||
" //==============================================================================\r\n"
|
||||
" juce_UseDebuggingNewOperator\r\n"
|
||||
"\r\n"
|
||||
"private:\r\n"
|
||||
" WINDOWCLASS (const WINDOWCLASS&);\r\n"
|
||||
" WINDOWCLASS& operator= (const WINDOWCLASS&);\r\n"
|
||||
" //==============================================================================\r\n"
|
||||
" JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WINDOWCLASS)\r\n"
|
||||
"};\r\n"
|
||||
"\r\n"
|
||||
"\r\n"
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ namespace BinaryData
|
|||
const int jucer_AudioPluginFilterTemplate_cppSize = 4480;
|
||||
|
||||
extern const char* jucer_AudioPluginFilterTemplate_h;
|
||||
const int jucer_AudioPluginFilterTemplate_hSize = 2382;
|
||||
const int jucer_AudioPluginFilterTemplate_hSize = 2425;
|
||||
|
||||
extern const char* jucer_MainConsoleAppTemplate_cpp;
|
||||
const int jucer_MainConsoleAppTemplate_cppSize = 749;
|
||||
|
|
@ -41,7 +41,7 @@ namespace BinaryData
|
|||
const int jucer_WindowTemplate_cppSize = 794;
|
||||
|
||||
extern const char* jucer_WindowTemplate_h;
|
||||
const int jucer_WindowTemplate_hSize = 1290;
|
||||
const int jucer_WindowTemplate_hSize = 1229;
|
||||
|
||||
extern const char* juce_icon_png;
|
||||
const int juce_icon_pngSize = 19826;
|
||||
|
|
|
|||
|
|
@ -50,15 +50,11 @@ public:
|
|||
void getCommandInfo (CommandID commandID, ApplicationCommandInfo& result);
|
||||
bool perform (const InvocationInfo& info);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
OpenDocumentManager::Document* document;
|
||||
|
||||
private:
|
||||
DocumentEditorComponent (const DocumentEditorComponent&);
|
||||
DocumentEditorComponent& operator= (const DocumentEditorComponent&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DocumentEditorComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@ public:
|
|||
void paint (Graphics& g);
|
||||
void resized();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
StringArray facts;
|
||||
|
|
@ -50,6 +48,8 @@ private:
|
|||
Image image;
|
||||
|
||||
void tryToLoadImage();
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ItemPreviewComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -71,9 +71,6 @@ public:
|
|||
void getCommandInfo (CommandID commandID, ApplicationCommandInfo& result);
|
||||
bool perform (const InvocationInfo& info);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer <Project> currentProject;
|
||||
|
||||
|
|
@ -85,6 +82,8 @@ private:
|
|||
|
||||
return "projectWindowPos_" + currentProject->getProjectUID();
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainWindow);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -107,13 +107,13 @@ public:
|
|||
|
||||
void registerType (DocumentType* type);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
OwnedArray <DocumentType> types;
|
||||
OwnedArray <Document> documents;
|
||||
Array <DocumentCloseListener*> listeners;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OpenDocumentManager);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -64,9 +64,9 @@ public:
|
|||
void getStateInformation (MemoryBlock& destData);
|
||||
void setStateInformation (const void* data, int sizeInBytes);
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FILTERCLASSNAME);
|
||||
};
|
||||
|
||||
#endif // HEADERGUARD
|
||||
|
|
|
|||
|
|
@ -32,12 +32,9 @@ public:
|
|||
implementation calls the superclass's method.
|
||||
*/
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
WINDOWCLASS (const WINDOWCLASS&);
|
||||
WINDOWCLASS& operator= (const WINDOWCLASS&);
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WINDOWCLASS)
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -48,11 +48,10 @@ public:
|
|||
|
||||
void resized();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
CodeEditorComponent editor;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SourceCodeEditor);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ public:
|
|||
{
|
||||
int x = getHeight() + 6;
|
||||
|
||||
item.getIcon()->drawWithin (g, Rectangle<float> (2, 2, x - 4, getHeight() - 4),
|
||||
item.getIcon()->drawWithin (g, Rectangle<float> (2.0f, 2.0f, x - 4.0f, getHeight() - 4.0f),
|
||||
RectanglePlacement::centred | RectanglePlacement::onlyReduceInSize, 1.0f);
|
||||
|
||||
g.setColour (Colours::black);
|
||||
|
|
|
|||
|
|
@ -52,16 +52,11 @@ public:
|
|||
void valueTreeChildrenChanged (ValueTree& treeWhoseChildHasChanged);
|
||||
void valueTreeParentChanged (ValueTree& treeWhoseParentHasChanged);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
Project::Item item;
|
||||
ListBox list;
|
||||
|
||||
//==============================================================================
|
||||
GroupInformationComponent (const GroupInformationComponent&);
|
||||
const GroupInformationComponent& operator= (const GroupInformationComponent&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GroupInformationComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -65,9 +65,6 @@ public:
|
|||
bool isCommandActive (const CommandID commandID);
|
||||
bool perform (const InvocationInfo& info);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer<TreeView> projectTree;
|
||||
Project* project;
|
||||
|
|
@ -77,6 +74,8 @@ private:
|
|||
ScopedPointer<StretchableLayoutResizerBar> resizerBar;
|
||||
|
||||
void updateMainWindowTitle();
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ProjectContentComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -351,14 +351,14 @@ protected:
|
|||
|
||||
if (++count == 8)
|
||||
{
|
||||
dataBlock.writeByte (mask);
|
||||
dataBlock.writeByte ((char) mask);
|
||||
count = 0;
|
||||
mask = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (mask != 0)
|
||||
dataBlock.writeByte (mask);
|
||||
dataBlock.writeByte ((char) mask);
|
||||
|
||||
for (int i = maskStride - w / 8; --i >= 0;)
|
||||
dataBlock.writeByte (0);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
|
||||
and re-saved.
|
||||
|
||||
Created for JUCE version: JUCE v1.52.92
|
||||
Created for JUCE version: JUCE v1.52.97
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
|
||||
and re-saved.
|
||||
|
||||
Created for JUCE version: JUCE v1.52.92
|
||||
Created for JUCE version: JUCE v1.52.97
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -51,10 +51,8 @@ public:
|
|||
void paint (Graphics& g);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
//[UserVariables] -- You can add your own custom variables in this section.
|
||||
Project& project;
|
||||
|
||||
|
|
@ -72,9 +70,7 @@ private:
|
|||
TextButton saveAndOpenButton;
|
||||
|
||||
//==============================================================================
|
||||
// (prevent copy constructor and operator= being generated..)
|
||||
ProjectInformationComponent (const ProjectInformationComponent&);
|
||||
ProjectInformationComponent& operator= (const ProjectInformationComponent&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ProjectInformationComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -134,11 +134,8 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
JucerToolbarButton (const JucerToolbarButton&);
|
||||
JucerToolbarButton& operator= (const JucerToolbarButton&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JucerToolbarButton);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -235,8 +232,6 @@ public:
|
|||
/** @internal */
|
||||
void handleAsyncUpdate();
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
struct ComponentPosition
|
||||
|
|
@ -260,6 +255,5 @@ private:
|
|||
OwnedArray <ComponentPosition> components;
|
||||
OwnedArray <MarkerPosition> markers;
|
||||
|
||||
RelativeRectangleLayoutManager (const RelativeRectangleLayoutManager&);
|
||||
RelativeRectangleLayoutManager& operator= (const RelativeRectangleLayoutManager&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (RelativeRectangleLayoutManager);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -73,8 +73,6 @@ public:
|
|||
const Image getFallbackImage();
|
||||
const Drawable* getImageFileIcon();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer<PropertiesFile> props;
|
||||
|
|
@ -82,6 +80,8 @@ private:
|
|||
|
||||
ScopedPointer<Drawable> imageFileIcon;
|
||||
Image fallbackImage;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StoredSettings);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -41,8 +41,6 @@ public:
|
|||
sourceValue.addListener (this);
|
||||
}
|
||||
|
||||
~NumericValueSource() {}
|
||||
|
||||
void valueChanged (Value&) { sendChangeMessage (true); }
|
||||
const var getValue() const { return (Type) sourceValue.getValue(); }
|
||||
|
||||
|
|
@ -55,13 +53,10 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
Value sourceValue;
|
||||
|
||||
NumericValueSource (const NumericValueSource&);
|
||||
const NumericValueSource& operator= (const NumericValueSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (NumericValueSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -65,14 +65,11 @@ public:
|
|||
void endDraggingConnector (const MouseEvent& e);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
FilterGraph& graph;
|
||||
ConnectorComponent* draggingConnector;
|
||||
|
||||
GraphEditorPanel (const GraphEditorPanel&);
|
||||
GraphEditorPanel& operator= (const GraphEditorPanel&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GraphEditorPanel);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -98,10 +95,8 @@ public:
|
|||
//==============================================================================
|
||||
void resized();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioDeviceManager* deviceManager;
|
||||
AudioProcessorPlayer graphPlayer;
|
||||
MidiKeyboardState keyState;
|
||||
|
|
@ -109,6 +104,8 @@ private:
|
|||
GraphEditorPanel* graphPanel;
|
||||
Component* keyboardComp;
|
||||
Component* statusBar;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (GraphDocumentComponent);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -403,14 +403,15 @@ public:
|
|||
return true;
|
||||
}
|
||||
#endif
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
void* const hostWindow;
|
||||
void* nsWindow;
|
||||
JuceCustomUIView* const owner;
|
||||
int titleW, titleH;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -58,12 +58,11 @@ public:
|
|||
*/
|
||||
void setFilter (AudioProcessor* filterToStream);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
ScopedPointer <AudioProcessorPlayer> player;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFilterStreamingDeviceManager);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -74,8 +74,6 @@ public:
|
|||
/** @internal */
|
||||
void resized();
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer<AudioProcessor> filter;
|
||||
ScopedPointer<AudioFilterStreamingDeviceManager> deviceManager;
|
||||
|
|
@ -83,8 +81,7 @@ private:
|
|||
|
||||
void deleteFilter();
|
||||
|
||||
StandaloneFilterWindow (const StandaloneFilterWindow&);
|
||||
StandaloneFilterWindow& operator= (const StandaloneFilterWindow&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (StandaloneFilterWindow);
|
||||
};
|
||||
|
||||
#endif // __JUCE_STANDALONEFILTERWINDOW_JUCEHEADER__
|
||||
|
|
|
|||
|
|
@ -1374,17 +1374,15 @@ public:
|
|||
}
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
JuceVSTWrapper& wrapper;
|
||||
ScopedPointer<AudioProcessorEditor> editor;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (EditorCompWrapper);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
AudioProcessor* filter;
|
||||
JUCE_NAMESPACE::MemoryBlock chunkMemory;
|
||||
|
|
@ -1465,6 +1463,8 @@ private:
|
|||
#else
|
||||
HWND hostWindow;
|
||||
#endif
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (JuceVSTWrapper);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -450,8 +450,6 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
MainDemoWindow* mainWindow;
|
||||
|
|
@ -486,6 +484,8 @@ private:
|
|||
useNativeMenus = 0x200e,
|
||||
goToKioskMode = 0x200f
|
||||
};
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ContentComp);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -69,9 +69,6 @@ public:
|
|||
fileChooser.setBounds (10, 10, getWidth() - 20, 25);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
// this is the document that the editor component is showing
|
||||
CodeDocument codeDocument;
|
||||
|
|
@ -83,6 +80,8 @@ private:
|
|||
ScopedPointer<CodeEditorComponent> editor;
|
||||
|
||||
FilenameComponent fileChooser;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (CodeEditorDemo);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -231,14 +231,11 @@ public:
|
|||
target.setBounds (getWidth() - 260, getHeight() - 160, 250, 150);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// (need to put this in to disambiguate the new/delete operators used in the
|
||||
// two base classes).
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
DragAndDropDemoSource source;
|
||||
DragAndDropDemoTarget target;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DragAndDropDemo);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -294,9 +294,6 @@ public:
|
|||
OwnedArray <DemoInterprocessConnection, CriticalSection> activeConnections;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ComboBox modeSelector;
|
||||
TextButton sendButton;
|
||||
|
|
@ -304,6 +301,8 @@ private:
|
|||
Label modeLabel, pipeLabel, numberLabel, hostLabel;
|
||||
|
||||
ScopedPointer<DemoInterprocessConnectionServer> server;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (InterprocessCommsDemo);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -194,8 +194,6 @@ public:
|
|||
table.setBoundsInset (BorderSize (8));
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
TableListBox table; // the table component itself
|
||||
|
|
@ -311,6 +309,8 @@ private:
|
|||
|
||||
return String::empty;
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TableDemoComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -29,11 +29,6 @@
|
|||
//==============================================================================
|
||||
class BouncingBallComp : public Component
|
||||
{
|
||||
float x, y, size, dx, dy, w, h, parentWidth, parentHeight;
|
||||
float innerX, innerY;
|
||||
Colour colour;
|
||||
Thread::ThreadID threadId;
|
||||
|
||||
public:
|
||||
BouncingBallComp()
|
||||
{
|
||||
|
|
@ -110,7 +105,13 @@ public:
|
|||
repaint();
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
float x, y, size, dx, dy, w, h, parentWidth, parentHeight;
|
||||
float innerX, innerY;
|
||||
Colour colour;
|
||||
Thread::ThreadID threadId;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BouncingBallComp);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -118,8 +119,6 @@ public:
|
|||
class DemoThread : public BouncingBallComp,
|
||||
public Thread
|
||||
{
|
||||
int interval;
|
||||
|
||||
public:
|
||||
DemoThread()
|
||||
: Thread ("Juce Demo Thread")
|
||||
|
|
@ -161,7 +160,10 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
int interval;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DemoThread);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -205,7 +207,8 @@ public:
|
|||
// In this case there's no need to do anything here.
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DemoThreadPoolJob);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -238,8 +238,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer <XmlElement> treeXml;
|
||||
|
||||
|
|
@ -251,6 +249,8 @@ private:
|
|||
TimeSliceThread thread;
|
||||
|
||||
TextButton typeButton;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TreeViewDemo);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -52,14 +52,10 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
TextEditor& addressTextBox;
|
||||
|
||||
DemoBrowserComponent (DemoBrowserComponent&);
|
||||
DemoBrowserComponent& operator= (const DemoBrowserComponent&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DemoBrowserComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -129,13 +125,13 @@ public:
|
|||
webView->goToURL (addressTextBox.getText());
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer<DemoBrowserComponent> webView;
|
||||
|
||||
TextEditor addressTextBox;
|
||||
TextButton goButton, backButton, forwardButton;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WebBrowserDemo);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -107,9 +107,9 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
void mouseDown (const MouseEvent&)
|
||||
void mouseDown (const MouseEvent& e)
|
||||
{
|
||||
dragger.startDraggingComponent (this, 0);
|
||||
dragger.startDraggingComponent (this, e, 0);
|
||||
}
|
||||
|
||||
void mouseDrag (const MouseEvent& e)
|
||||
|
|
|
|||
5
juce.h
5
juce.h
|
|
@ -61,6 +61,11 @@ BEGIN_JUCE_NAMESPACE
|
|||
#pragma pack (pop)
|
||||
#endif
|
||||
|
||||
#if JUCE_DLL
|
||||
#undef JUCE_LEAK_DETECTOR(OwnerClass)
|
||||
#define JUCE_LEAK_DETECTOR(OwnerClass)
|
||||
#endif
|
||||
|
||||
END_JUCE_NAMESPACE
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -274,10 +274,11 @@
|
|||
#endif
|
||||
|
||||
//=============================================================================
|
||||
/** JUCE_CHECK_MEMORY_LEAKS: Enables a memory-leak check when an app terminates.
|
||||
(Currently, this only affects Windows builds in debug mode).
|
||||
/** JUCE_CHECK_MEMORY_LEAKS: Enables a memory-leak check for certain objects when
|
||||
the app terminates. See the LeakedObjectDetector class and the JUCE_LEAK_DETECTOR
|
||||
macro for more details about enabling leak checking for specific classes.
|
||||
*/
|
||||
#ifndef JUCE_CHECK_MEMORY_LEAKS
|
||||
#if JUCE_DEBUG && ! defined (JUCE_CHECK_MEMORY_LEAKS)
|
||||
#define JUCE_CHECK_MEMORY_LEAKS 1
|
||||
#endif
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
1702
juce_amalgamated.h
1702
juce_amalgamated.h
File diff suppressed because it is too large
Load diff
|
|
@ -313,9 +313,6 @@ public:
|
|||
static ApplicationCommandTarget* findTargetForComponent (Component* component);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray <ApplicationCommandInfo> commands;
|
||||
|
|
@ -333,8 +330,7 @@ private:
|
|||
virtual short getFirstCommandTarget() { return 0; }
|
||||
#endif
|
||||
|
||||
ApplicationCommandManager (const ApplicationCommandManager&);
|
||||
ApplicationCommandManager& operator= (const ApplicationCommandManager&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ApplicationCommandManager);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -233,10 +233,8 @@ public:
|
|||
*/
|
||||
ApplicationCommandTarget* findFirstTargetParentComponent();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
// (for async invocation of commands)
|
||||
class CommandTargetMessageInvoker : public MessageListener
|
||||
{
|
||||
|
|
@ -258,8 +256,7 @@ private:
|
|||
friend class CommandTargetMessageInvoker;
|
||||
bool tryToInvoke (const InvocationInfo& info, bool async);
|
||||
|
||||
ApplicationCommandTarget (const ApplicationCommandTarget&);
|
||||
ApplicationCommandTarget& operator= (const ApplicationCommandTarget&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ApplicationCommandTarget);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -144,9 +144,6 @@ public:
|
|||
void closeFiles();
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
ScopedPointer <PropertiesFile> userProps, commonProps;
|
||||
|
|
@ -156,10 +153,9 @@ private:
|
|||
int commonSettingsAreReadOnly;
|
||||
InterProcessLock* processLock;
|
||||
|
||||
ApplicationProperties (const ApplicationProperties&);
|
||||
ApplicationProperties& operator= (const ApplicationProperties&);
|
||||
|
||||
void openFiles();
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ApplicationProperties);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -214,13 +214,10 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
AiffAudioFormatReader (const AiffAudioFormatReader&);
|
||||
AiffAudioFormatReader& operator= (const AiffAudioFormatReader&);
|
||||
|
||||
static inline int chunkName (const char* const name) { return (int) ByteOrder::littleEndianInt (name); }
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AiffAudioFormatReader);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -285,8 +282,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
MemoryBlock tempBlock;
|
||||
uint32 lengthInSamples, bytesWritten;
|
||||
|
|
@ -295,9 +290,6 @@ private:
|
|||
|
||||
static inline int chunkName (const char* const name) { return (int) ByteOrder::littleEndianInt (name); }
|
||||
|
||||
AiffAudioFormatWriter (const AiffAudioFormatWriter&);
|
||||
AiffAudioFormatWriter& operator= (const AiffAudioFormatWriter&);
|
||||
|
||||
void writeHeader()
|
||||
{
|
||||
const bool couldSeekOk = output->setPosition (headerPosition);
|
||||
|
|
@ -371,6 +363,8 @@ private:
|
|||
|
||||
jassert (output->getPosition() == headerLen);
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AiffAudioFormatWriter);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ public:
|
|||
int qualityOptionIndex);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_LEAK_DETECTOR (AiffAudioFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -157,15 +157,15 @@ public:
|
|||
*/
|
||||
void abortBurn();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioCDBurner (const int deviceIndex);
|
||||
|
||||
class Pimpl;
|
||||
friend class ScopedPointer<Pimpl>;
|
||||
ScopedPointer<Pimpl> pimpl;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioCDBurner);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -159,10 +159,8 @@ public:
|
|||
samplesPerFrame = 44100 / framesPerSecond
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
Array<int> trackStartSamples;
|
||||
|
||||
#if JUCE_MAC
|
||||
|
|
@ -185,8 +183,7 @@ private:
|
|||
AudioCDReader();
|
||||
#endif
|
||||
|
||||
AudioCDReader (const AudioCDReader&);
|
||||
AudioCDReader& operator= (const AudioCDReader&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioCDReader);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -133,12 +133,12 @@ public:
|
|||
*/
|
||||
AudioFormatReader* createReaderFor (InputStream* audioFileStream);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray<AudioFormat> knownFormats;
|
||||
int defaultFormatIndex;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatManager);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -216,10 +216,8 @@ public:
|
|||
int numSamples) = 0;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
/** Used by AudioFormatReader subclasses to copy data to different formats. */
|
||||
template <class DestSampleType, class SourceSampleType, class SourceEndianness>
|
||||
struct ReadHelper
|
||||
|
|
@ -248,8 +246,7 @@ protected:
|
|||
private:
|
||||
String formatName;
|
||||
|
||||
AudioFormatReader (const AudioFormatReader&);
|
||||
AudioFormatReader& operator= (const AudioFormatReader&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatReader);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -192,10 +192,8 @@ public:
|
|||
ScopedPointer<Buffer> buffer;
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
/** The sample rate of the stream. */
|
||||
double sampleRate;
|
||||
|
||||
|
|
@ -241,8 +239,7 @@ private:
|
|||
String formatName;
|
||||
friend class ThreadedWriter;
|
||||
|
||||
AudioFormatWriter (const AudioFormatWriter&);
|
||||
AudioFormatWriter& operator= (const AudioFormatWriter&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatWriter);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -78,16 +78,13 @@ public:
|
|||
float& highestRight);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioFormatReader* const source;
|
||||
int64 startSample, length;
|
||||
const bool deleteSourceWhenDeleted;
|
||||
|
||||
AudioSubsectionReader (const AudioSubsectionReader&);
|
||||
AudioSubsectionReader& operator= (const AudioSubsectionReader&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioSubsectionReader);
|
||||
};
|
||||
|
||||
#endif // __JUCE_AUDIOSUBSECTIONREADER_JUCEHEADER__
|
||||
|
|
|
|||
|
|
@ -164,10 +164,8 @@ public:
|
|||
/** @internal */
|
||||
void timerCallback();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioFormatManager& formatManagerToUse;
|
||||
AudioThumbnailCache& cache;
|
||||
ScopedPointer <InputSource> source;
|
||||
|
|
@ -194,6 +192,8 @@ private:
|
|||
|
||||
// returns true if more needs to be read
|
||||
bool readNextBlockFromAudioFile (AudioFormatReader& reader);
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioThumbnail);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ struct ThumbnailCacheEntry
|
|||
uint32 lastUsed;
|
||||
MemoryBlock data;
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
JUCE_LEAK_DETECTOR (ThumbnailCacheEntry);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -75,9 +75,6 @@ public:
|
|||
void storeThumb (const AudioThumbnail& thumb, int64 hashCode);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray <ThumbnailCacheEntry> thumbs;
|
||||
|
|
@ -86,6 +83,8 @@ private:
|
|||
friend class AudioThumbnail;
|
||||
void addThumbnail (AudioThumbnail* thumb);
|
||||
void removeThumbnail (AudioThumbnail* thumb);
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioThumbnailCache);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -297,16 +297,13 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
FlacNamespace::FLAC__StreamDecoder* decoder;
|
||||
AudioSampleBuffer reservoir;
|
||||
int reservoirStart, samplesInReservoir;
|
||||
bool ok, scanningForLength;
|
||||
|
||||
FlacReader (const FlacReader&);
|
||||
FlacReader& operator= (const FlacReader&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FlacReader);
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -470,15 +467,12 @@ public:
|
|||
static_cast <FlacWriter*> (client_data)->writeMetaData (metadata);
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
bool ok;
|
||||
|
||||
private:
|
||||
FlacNamespace::FLAC__StreamEncoder* encoder;
|
||||
|
||||
FlacWriter (const FlacWriter&);
|
||||
FlacWriter& operator= (const FlacWriter&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FlacWriter);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -66,8 +66,8 @@ public:
|
|||
const StringPairArray& metadataValues,
|
||||
int qualityOptionIndex);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_LEAK_DETECTOR (FlacAudioFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -241,7 +241,8 @@ public:
|
|||
return (long) static_cast <InputStream*> (datasource)->getPosition();
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OggReader);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -389,7 +390,8 @@ public:
|
|||
return true;
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (OggWriter);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ public:
|
|||
const StringPairArray& metadataValues,
|
||||
int qualityOptionIndex);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_LEAK_DETECTOR (OggVorbisAudioFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -305,8 +305,6 @@ public:
|
|||
return ok;
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
bool ok;
|
||||
|
||||
private:
|
||||
|
|
@ -341,8 +339,7 @@ private:
|
|||
#endif
|
||||
}
|
||||
|
||||
QTAudioReader (const QTAudioReader&);
|
||||
QTAudioReader& operator= (const QTAudioReader&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (QTAudioReader);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ public:
|
|||
int qualityOptionIndex);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
private:
|
||||
JUCE_LEAK_DETECTOR (QuickTimeAudioFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -428,8 +428,6 @@ public:
|
|||
|
||||
int64 bwavChunkStart, bwavSize;
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer<AudioData::Converter> converter;
|
||||
int bytesPerFrame;
|
||||
|
|
@ -437,8 +435,7 @@ private:
|
|||
|
||||
static inline int chunkName (const char* const name) { return (int) ByteOrder::littleEndianInt (name); }
|
||||
|
||||
WavAudioFormatReader (const WavAudioFormatReader&);
|
||||
WavAudioFormatReader& operator= (const WavAudioFormatReader&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WavAudioFormatReader);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -514,8 +511,6 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
ScopedPointer<AudioData::Converter> converter;
|
||||
MemoryBlock tempBlock, bwavChunk, smplChunk;
|
||||
|
|
@ -570,8 +565,7 @@ private:
|
|||
usesFloatingPointData = (bitsPerSample == 32);
|
||||
}
|
||||
|
||||
WavAudioFormatWriter (const WavAudioFormatWriter&);
|
||||
WavAudioFormatWriter& operator= (const WavAudioFormatWriter&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WavAudioFormatWriter);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -143,8 +143,9 @@ public:
|
|||
*/
|
||||
bool replaceMetadataInFile (const File& wavFile, const StringPairArray& newMetadata);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
JUCE_LEAK_DETECTOR (WavAudioFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -91,11 +91,8 @@ public:
|
|||
/** Implements the PositionableAudioSource method. */
|
||||
int getTotalLength() const;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioFormatReader* reader;
|
||||
bool deleteReader;
|
||||
|
||||
|
|
@ -104,8 +101,7 @@ private:
|
|||
|
||||
void readBufferSection (int start, int length, AudioSampleBuffer& buffer, int startSample);
|
||||
|
||||
AudioFormatReaderSource (const AudioFormatReaderSource&);
|
||||
AudioFormatReaderSource& operator= (const AudioFormatReaderSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioFormatReaderSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -98,9 +98,6 @@ public:
|
|||
/** Implementation of the AudioIODeviceCallback method. */
|
||||
void audioDeviceStopped();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
CriticalSection readLock;
|
||||
|
|
@ -113,8 +110,7 @@ private:
|
|||
AudioSampleBuffer tempBuffer;
|
||||
float lastGain, gain;
|
||||
|
||||
AudioSourcePlayer (const AudioSourcePlayer&);
|
||||
AudioSourcePlayer& operator= (const AudioSourcePlayer&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioSourcePlayer);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -156,10 +156,8 @@ public:
|
|||
/** Implements the PositionableAudioSource method. */
|
||||
bool isLooping() const;
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
PositionableAudioSource* source;
|
||||
ResamplingAudioSource* resamplerSource;
|
||||
BufferingAudioSource* bufferingSource;
|
||||
|
|
@ -173,8 +171,7 @@ private:
|
|||
int blockSize, readAheadBufferSize;
|
||||
bool isPrepared, inputStreamEOF;
|
||||
|
||||
AudioTransportSource (const AudioTransportSource&);
|
||||
AudioTransportSource& operator= (const AudioTransportSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioTransportSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -86,9 +86,6 @@ public:
|
|||
/** Implements the PositionableAudioSource method. */
|
||||
bool isLooping() const { return source->isLooping(); }
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
PositionableAudioSource* source;
|
||||
|
|
@ -104,8 +101,7 @@ private:
|
|||
bool readNextBufferChunk();
|
||||
void readBufferSection (int start, int length, int bufferOffset);
|
||||
|
||||
BufferingAudioSource (const BufferingAudioSource&);
|
||||
BufferingAudioSource& operator= (const BufferingAudioSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (BufferingAudioSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -133,10 +133,8 @@ public:
|
|||
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
int requiredNumberOfChannels;
|
||||
Array <int> remappedInputs, remappedOutputs;
|
||||
|
||||
|
|
@ -148,8 +146,7 @@ private:
|
|||
|
||||
CriticalSection lock;
|
||||
|
||||
ChannelRemappingAudioSource (const ChannelRemappingAudioSource&);
|
||||
ChannelRemappingAudioSource& operator= (const ChannelRemappingAudioSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChannelRemappingAudioSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -62,17 +62,13 @@ public:
|
|||
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioSource* const input;
|
||||
const bool deleteInputWhenDeleted;
|
||||
OwnedArray <IIRFilter> iirFilters;
|
||||
|
||||
IIRFilterAudioSource (const IIRFilterAudioSource&);
|
||||
IIRFilterAudioSource& operator= (const IIRFilterAudioSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (IIRFilterAudioSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -104,9 +104,6 @@ public:
|
|||
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
Array <AudioSource*> inputs;
|
||||
|
|
@ -116,8 +113,7 @@ private:
|
|||
double currentSampleRate;
|
||||
int bufferSizeExpected;
|
||||
|
||||
MixerAudioSource (const MixerAudioSource&);
|
||||
MixerAudioSource& operator= (const MixerAudioSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MixerAudioSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -75,10 +75,8 @@ public:
|
|||
void releaseResources();
|
||||
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioSource* const input;
|
||||
const bool deleteInputWhenDeleted;
|
||||
double ratio, lastRatio;
|
||||
|
|
@ -103,8 +101,7 @@ private:
|
|||
|
||||
void applyFilter (float* samples, int num, FilterState& fs);
|
||||
|
||||
ResamplingAudioSource (const ResamplingAudioSource&);
|
||||
ResamplingAudioSource& operator= (const ResamplingAudioSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ResamplingAudioSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -63,17 +63,13 @@ public:
|
|||
void getNextAudioBlock (const AudioSourceChannelInfo& bufferToFill);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
double frequency, sampleRate;
|
||||
double currentPhase, phasePerSample;
|
||||
float amplitude;
|
||||
|
||||
ToneGeneratorAudioSource (const ToneGeneratorAudioSource&);
|
||||
ToneGeneratorAudioSource& operator= (const ToneGeneratorAudioSource&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ToneGeneratorAudioSource);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -441,9 +441,6 @@ public:
|
|||
*/
|
||||
CriticalSection& getMidiCallbackLock() throw() { return midiCallbackLock; }
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray <AudioIODeviceType> availableDeviceTypes;
|
||||
|
|
@ -522,8 +519,7 @@ private:
|
|||
|
||||
AudioIODeviceType* findType (const String& inputName, const String& outputName);
|
||||
|
||||
AudioDeviceManager (const AudioDeviceManager&);
|
||||
AudioDeviceManager& operator= (const AudioDeviceManager&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioDeviceManager);
|
||||
};
|
||||
|
||||
#endif // __JUCE_AUDIODEVICEMANAGER_JUCEHEADER__
|
||||
|
|
|
|||
|
|
@ -170,18 +170,16 @@ public:
|
|||
*/
|
||||
virtual void stop();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
String name;
|
||||
void* internal;
|
||||
|
||||
explicit MidiInput (const String& name);
|
||||
|
||||
private:
|
||||
MidiInput (const MidiInput&);
|
||||
MidiInput& operator= (const MidiInput&);
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiInput);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -148,10 +148,8 @@ public:
|
|||
virtual void stopBackgroundThread();
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
void* internal;
|
||||
|
||||
struct PendingMessage
|
||||
|
|
@ -160,8 +158,6 @@ protected:
|
|||
|
||||
MidiMessage message;
|
||||
PendingMessage* next;
|
||||
|
||||
juce_UseDebuggingNewOperator
|
||||
};
|
||||
|
||||
CriticalSection lock;
|
||||
|
|
@ -171,8 +167,7 @@ protected:
|
|||
void run();
|
||||
|
||||
private:
|
||||
MidiOutput (const MidiOutput&);
|
||||
MidiOutput& operator= (const MidiOutput&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiOutput);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -420,10 +420,8 @@ public:
|
|||
int startSample,
|
||||
int numSamples) const;
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
int numChannels, size;
|
||||
size_t allocatedBytes;
|
||||
float** channels;
|
||||
|
|
@ -432,6 +430,8 @@ private:
|
|||
|
||||
void allocateData();
|
||||
void allocateChannels (float** dataToReferTo);
|
||||
|
||||
JUCE_LEAK_DETECTOR (AudioSampleBuffer);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -131,11 +131,8 @@ public:
|
|||
void copyCoefficientsFrom (const IIRFilter& other) throw();
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
CriticalSection processLock;
|
||||
|
||||
void setCoefficients (double c1, double c2, double c3,
|
||||
|
|
@ -147,6 +144,7 @@ protected:
|
|||
|
||||
// (use the copyCoefficientsFrom() method instead of this operator)
|
||||
IIRFilter& operator= (const IIRFilter&);
|
||||
JUCE_LEAK_DETECTOR (IIRFilter);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -213,10 +213,8 @@ public:
|
|||
int& numBytesOfMidiData,
|
||||
int& samplePosition) throw();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
const MidiBuffer& buffer;
|
||||
const uint8* data;
|
||||
|
||||
|
|
@ -224,11 +222,8 @@ public:
|
|||
Iterator& operator= (const Iterator&);
|
||||
};
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
friend class MidiBuffer::Iterator;
|
||||
MemoryBlock data;
|
||||
int bytesUsed;
|
||||
|
|
@ -238,6 +233,8 @@ private:
|
|||
static int getEventTime (const void* d) throw();
|
||||
static uint16 getEventDataSize (const void* d) throw();
|
||||
static uint16 getEventTotalSize (const void* d) throw();
|
||||
|
||||
JUCE_LEAK_DETECTOR (MidiBuffer);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -174,18 +174,15 @@ public:
|
|||
void convertTimestampTicksToSeconds();
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray <MidiMessageSequence> tracks;
|
||||
short timeFormat;
|
||||
|
||||
MidiFile (const MidiFile&);
|
||||
MidiFile& operator= (const MidiFile&);
|
||||
|
||||
void readNextTrack (const uint8* data, int size);
|
||||
void writeTrack (OutputStream& mainOut, int trackNum);
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiFile);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -194,10 +194,8 @@ public:
|
|||
*/
|
||||
void removeListener (MidiKeyboardStateListener* listener);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
CriticalSection lock;
|
||||
uint16 noteStates [128];
|
||||
MidiBuffer eventsToAdd;
|
||||
|
|
@ -206,8 +204,7 @@ private:
|
|||
void noteOnInternal (int midiChannel, int midiNoteNumber, float velocity);
|
||||
void noteOffInternal (int midiChannel, int midiNoteNumber);
|
||||
|
||||
MidiKeyboardState (const MidiKeyboardState&);
|
||||
MidiKeyboardState& operator= (const MidiKeyboardState&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiKeyboardState);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -890,11 +890,8 @@ public:
|
|||
*/
|
||||
static const String getControllerName (int controllerNumber);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
double timeStamp;
|
||||
uint8* data;
|
||||
int size;
|
||||
|
|
|
|||
|
|
@ -91,17 +91,14 @@ public:
|
|||
/** @internal */
|
||||
void handleIncomingMidiMessage (MidiInput* source, const MidiMessage& message);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
double lastCallbackTime;
|
||||
CriticalSection midiCallbackLock;
|
||||
MidiBuffer incomingMessages;
|
||||
double sampleRate;
|
||||
|
||||
MidiMessageCollector (const MidiMessageCollector&);
|
||||
MidiMessageCollector& operator= (const MidiMessageCollector&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MidiMessageCollector);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -84,13 +84,11 @@ public:
|
|||
*/
|
||||
MidiEventHolder* noteOffObject;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
friend class MidiMessageSequence;
|
||||
MidiEventHolder (const MidiMessage& message);
|
||||
JUCE_LEAK_DETECTOR (MidiEventHolder);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -268,8 +266,6 @@ public:
|
|||
void swapWith (MidiMessageSequence& other) throw();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
/** @internal */
|
||||
static int compareElements (const MidiMessageSequence::MidiEventHolder* first,
|
||||
const MidiMessageSequence::MidiEventHolder* second) throw();
|
||||
|
|
@ -280,6 +276,8 @@ private:
|
|||
OwnedArray <MidiEventHolder> list;
|
||||
|
||||
void sort();
|
||||
|
||||
JUCE_LEAK_DETECTOR (MidiMessageSequence);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -51,12 +51,9 @@ public:
|
|||
bool doesPluginStillExist (const PluginDescription& desc);
|
||||
const FileSearchPath getDefaultLocationsToSearch();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
AudioUnitPluginFormat (const AudioUnitPluginFormat&);
|
||||
AudioUnitPluginFormat& operator= (const AudioUnitPluginFormat&);
|
||||
//==============================================================================
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioUnitPluginFormat);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -265,10 +265,8 @@ public:
|
|||
void setStateInformation (const void* data, int sizeInBytes);
|
||||
void setCurrentProgramStateInformation (const void* data, int sizeInBytes);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
friend class AudioUnitPluginWindowCarbon;
|
||||
friend class AudioUnitPluginWindowCocoa;
|
||||
friend class AudioUnitPluginFormat;
|
||||
|
|
@ -404,6 +402,8 @@ private:
|
|||
|
||||
//==============================================================================
|
||||
AudioUnitPluginInstance (const String& fileOrIdentifier);
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioUnitPluginInstance);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -1080,10 +1080,8 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
AudioUnitPluginInstance& plugin;
|
||||
ComponentRecord* componentRecord;
|
||||
AudioUnitCarbonView viewComponent;
|
||||
|
|
@ -1138,6 +1136,8 @@ private:
|
|||
|
||||
friend class InnerWrapperComponent;
|
||||
ScopedPointer<InnerWrapperComponent> innerWrapper;
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioUnitPluginWindowCarbon);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -53,12 +53,8 @@ public:
|
|||
const String getNameOfPluginFromIdentifier (const String& fileOrIdentifier) { return fileOrIdentifier; }
|
||||
const FileSearchPath getDefaultLocationsToSearch();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
DirectXPluginFormat (const DirectXPluginFormat&);
|
||||
DirectXPluginFormat& operator= (const DirectXPluginFormat&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (DirectXPluginFormat);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -53,12 +53,8 @@ public:
|
|||
const String getNameOfPluginFromIdentifier (const String& fileOrIdentifier) { return fileOrIdentifier; }
|
||||
const FileSearchPath getDefaultLocationsToSearch();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
LADSPAPluginFormat (const LADSPAPluginFormat&);
|
||||
LADSPAPluginFormat& operator= (const LADSPAPluginFormat&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LADSPAPluginFormat);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -425,9 +425,6 @@ public:
|
|||
close();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_WINDOWS || JUCE_LINUX
|
||||
void* hModule;
|
||||
|
|
@ -682,6 +679,9 @@ public:
|
|||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ModuleHandle);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -783,10 +783,8 @@ public:
|
|||
void handleAsyncUpdate();
|
||||
VstIntPtr handleCallback (VstInt32 opcode, VstInt32 index, VstInt32 value, void *ptr, float opt);
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
friend class VSTPluginWindow;
|
||||
friend class VSTPluginFormat;
|
||||
|
||||
|
|
@ -828,6 +826,7 @@ private:
|
|||
void setPower (const bool on);
|
||||
|
||||
VSTPluginInstance (const ReferenceCountedObjectPtr <ModuleHandle>& module);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginInstance);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -1367,8 +1366,6 @@ public:
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
VSTPluginInstance& plugin;
|
||||
bool isOpen, wasShowing, recursiveResize;
|
||||
|
|
@ -1880,6 +1877,9 @@ private:
|
|||
innerWrapper->setSize (getWidth(), getHeight());
|
||||
}
|
||||
#endif
|
||||
|
||||
private:
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginWindow);
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
|
|
@ -52,14 +52,11 @@ public:
|
|||
bool doesPluginStillExist (const PluginDescription& desc);
|
||||
const FileSearchPath getDefaultLocationsToSearch();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
VSTPluginFormat (const VSTPluginFormat&);
|
||||
VSTPluginFormat& operator= (const VSTPluginFormat&);
|
||||
|
||||
//==============================================================================
|
||||
void recursiveFileSearch (StringArray& results, const File& dir, const bool recursive);
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VSTPluginFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -105,15 +105,11 @@ public:
|
|||
virtual const FileSearchPath getDefaultLocationsToSearch() = 0;
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
AudioPluginFormat() throw();
|
||||
|
||||
AudioPluginFormat (const AudioPluginFormat&);
|
||||
AudioPluginFormat& operator= (const AudioPluginFormat&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginFormat);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -92,14 +92,11 @@ public:
|
|||
*/
|
||||
bool doesPluginStillExist (const PluginDescription& description) const;
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray <AudioPluginFormat> formats;
|
||||
|
||||
AudioPluginFormatManager (const AudioPluginFormatManager&);
|
||||
AudioPluginFormatManager& operator= (const AudioPluginFormatManager&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginFormatManager);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -62,14 +62,11 @@ public:
|
|||
*/
|
||||
virtual void* getPlatformSpecificData();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
AudioPluginInstance();
|
||||
|
||||
AudioPluginInstance (const AudioPluginInstance&);
|
||||
AudioPluginInstance& operator= (const AudioPluginInstance&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioPluginInstance);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -157,14 +157,11 @@ public:
|
|||
void recreateFromXml (const XmlElement& xml);
|
||||
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
OwnedArray <PluginDescription> types;
|
||||
|
||||
KnownPluginList (const KnownPluginList&);
|
||||
KnownPluginList& operator= (const KnownPluginList&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (KnownPluginList);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -137,8 +137,9 @@ public:
|
|||
bool loadFromXml (const XmlElement& xml);
|
||||
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
JUCE_LEAK_DETECTOR (PluginDescription);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -105,10 +105,8 @@ public:
|
|||
*/
|
||||
const StringArray& getFailedFiles() const throw() { return failedFiles; }
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
KnownPluginList& list;
|
||||
AudioPluginFormat& format;
|
||||
StringArray filesOrIdentifiersToScan;
|
||||
|
|
@ -120,8 +118,7 @@ private:
|
|||
const StringArray getDeadMansPedalFile();
|
||||
void setDeadMansPedalFile (const StringArray& newContents);
|
||||
|
||||
PluginDirectoryScanner (const PluginDirectoryScanner&);
|
||||
PluginDirectoryScanner& operator= (const PluginDirectoryScanner&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PluginDirectoryScanner);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -80,10 +80,8 @@ public:
|
|||
/** @internal */
|
||||
void timerCallback();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
KnownPluginList& list;
|
||||
File deadMansPedalFile;
|
||||
ListBox listBox;
|
||||
|
|
@ -93,8 +91,7 @@ private:
|
|||
|
||||
void scanFor (AudioPluginFormat* format);
|
||||
|
||||
PluginListComponent (const PluginListComponent&);
|
||||
PluginListComponent& operator= (const PluginListComponent&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PluginListComponent);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -552,9 +552,6 @@ public:
|
|||
double sampleRate,
|
||||
int blockSize) throw();
|
||||
|
||||
//==============================================================================
|
||||
juce_UseDebuggingNewOperator
|
||||
|
||||
protected:
|
||||
//==============================================================================
|
||||
/** Helper function that just converts an xml element into a binary blob.
|
||||
|
|
@ -593,8 +590,7 @@ private:
|
|||
BigInteger changingParams;
|
||||
#endif
|
||||
|
||||
AudioProcessor (const AudioProcessor&);
|
||||
AudioProcessor& operator= (const AudioProcessor&);
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AudioProcessor);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue