mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
Formatting: Use nested namespace definitions
This commit is contained in:
parent
90c458d92e
commit
158220ddfa
142 changed files with 394 additions and 796 deletions
|
|
@ -3,6 +3,7 @@ Checks: >
|
|||
-clang-analyzer-optin.performance.Padding,
|
||||
-clang-analyzer-security.FloatLoopCounter,
|
||||
-clang-analyzer-security.insecureAPI.strcpy,
|
||||
modernize-concat-nested-namespaces,
|
||||
|
||||
WarningsAsErrors: '*'
|
||||
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
static const char* resourceFileIdentifierString = "JUCER_BINARY_RESOURCE";
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -285,5 +284,5 @@ namespace build_tools
|
|||
|
||||
return { Result::ok(), std::move (filesCreated) };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
class ResourceFile
|
||||
{
|
||||
public:
|
||||
|
|
@ -70,5 +69,5 @@ namespace build_tools
|
|||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ResourceFile)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
void overwriteFileIfDifferentOrThrow (const File& file, const MemoryOutputStream& newData)
|
||||
{
|
||||
if (! overwriteFileWithNewDataIfDifferent (file, newData))
|
||||
|
|
@ -355,5 +354,5 @@ namespace build_tools
|
|||
writer (mo);
|
||||
overwriteFileIfDifferentOrThrow (file, mo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
void overwriteFileIfDifferentOrThrow (const File& file, const MemoryOutputStream& newData);
|
||||
void overwriteFileIfDifferentOrThrow (const File& file, const String& newData);
|
||||
|
||||
|
|
@ -82,5 +81,5 @@ namespace build_tools
|
|||
String getRelativePathFrom (const File& file, const File& sourceFolder);
|
||||
|
||||
void writeStreamToFile (const File& file, const std::function<void (MemoryOutputStream&)>& writer);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
static bool isReservedKeyword (String::CharPointerType token, const int tokenLength) noexcept
|
||||
{
|
||||
static const char* const keywords2Char[] =
|
||||
|
|
@ -202,5 +201,5 @@ namespace build_tools
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce:: build_tools
|
||||
{
|
||||
|
||||
String EntitlementOptions::getEntitlementsFileContent() const
|
||||
{
|
||||
String content =
|
||||
|
|
@ -132,5 +131,5 @@ namespace build_tools
|
|||
|
||||
return entitlements;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
struct EntitlementOptions final
|
||||
{
|
||||
String getEntitlementsFileContent() const;
|
||||
|
|
@ -61,5 +60,5 @@ namespace build_tools
|
|||
private:
|
||||
StringPairArray getEntitlements() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
Array<Drawable*> asArray (const Icons& icons)
|
||||
{
|
||||
Array<Drawable*> result;
|
||||
|
|
@ -495,5 +494,5 @@ namespace build_tools
|
|||
|
||||
return { assets, targetFolder, RelativePath::buildTargetFolder };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
struct Icons
|
||||
{
|
||||
std::unique_ptr<Drawable> small;
|
||||
|
|
@ -45,5 +44,5 @@ namespace build_tools
|
|||
RelativePath createXcassetsFolderFromIcons (const Icons& icons,
|
||||
const File& targetFolder,
|
||||
String projectFilenameRootString);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
static XmlElement* getKeyWithName (XmlElement& xml, const String& key)
|
||||
{
|
||||
|
|
@ -374,5 +373,5 @@ namespace build_tools
|
|||
|
||||
return { plistKey, plistEntry };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
class PlistOptions final
|
||||
{
|
||||
public:
|
||||
|
|
@ -103,5 +102,5 @@ namespace build_tools
|
|||
Array<XmlElement> createExtraAudioUnitTargetPlistOptions() const;
|
||||
Array<XmlElement> createExtraAudioUnitV3TargetPlistOptions() const;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
class ProjectType
|
||||
{
|
||||
|
|
@ -321,5 +320,5 @@ namespace build_tools
|
|||
|
||||
return Array<ProjectType*> (&guiApp, &consoleApp, &staticLib, &dll, &plugin, &araplugin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/** Manipulates a cross-platform partial file path. (Needed because File is designed
|
||||
for absolute paths on the active OS)
|
||||
|
|
@ -125,5 +124,5 @@ namespace build_tools
|
|||
return currentWorkingDirectory.getChildFile (path);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
uint64 calculateStreamHashCode (InputStream& in)
|
||||
{
|
||||
uint64 t = 0;
|
||||
|
|
@ -87,5 +86,5 @@ namespace build_tools
|
|||
const char* const utf8 = newData.toUTF8();
|
||||
return overwriteFileWithNewDataIfDifferent (file, utf8, strlen (utf8));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce:: build_tools
|
||||
{
|
||||
|
||||
uint64 calculateStreamHashCode (InputStream& in);
|
||||
uint64 calculateFileHashCode (const File& file);
|
||||
uint64 calculateMemoryHashCode (const void* data, size_t numBytes);
|
||||
|
|
@ -34,5 +33,5 @@ namespace build_tools
|
|||
bool overwriteFileWithNewDataIfDifferent (const File& file, const void* data, size_t numBytes);
|
||||
bool overwriteFileWithNewDataIfDifferent (const File& file, const MemoryOutputStream& newData);
|
||||
bool overwriteFileWithNewDataIfDifferent (const File& file, const String& newData);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
static String getCommaSeparatedVersionNumber (const String& version)
|
||||
{
|
||||
auto versionParts = StringArray::fromTokens (version, ",.", "");
|
||||
|
|
@ -93,5 +92,5 @@ namespace build_tools
|
|||
|
||||
overwriteFileIfDifferentOrThrow (resourceRcFile, mo);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
class ResourceRcOptions final
|
||||
{
|
||||
public:
|
||||
|
|
@ -39,5 +38,5 @@ namespace build_tools
|
|||
String projectName;
|
||||
File icon;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
StringArray getVersionSegments (StringRef p)
|
||||
{
|
||||
auto segments = StringArray::fromTokens (p, ",.", "");
|
||||
|
|
@ -56,5 +55,5 @@ namespace build_tools
|
|||
{
|
||||
return "0x" + String::toHexString (getVersionAsHexInteger (versionString));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -23,15 +23,14 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace build_tools
|
||||
namespace juce::build_tools
|
||||
{
|
||||
|
||||
StringArray getVersionSegments (StringRef p);
|
||||
|
||||
int getVersionAsHexIntegerFromParts (const StringArray& versionString);
|
||||
int getVersionAsHexInteger (StringRef versionString);
|
||||
|
||||
String getVersionAsHex (StringRef versionString);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce::build_tools
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/** Represents a MIDI message that happened at a particular time.
|
||||
|
|
@ -352,7 +350,6 @@ struct Conversion
|
|||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
/**
|
||||
Allows conversion from bytestream- or Universal MIDI Packet-formatted
|
||||
|
|
@ -182,7 +180,6 @@ namespace universal_midi_packets
|
|||
|
||||
Midi1ToBytestreamTranslator translator;
|
||||
};
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -196,7 +194,6 @@ private:
|
|||
ToBytestreamConverter converter;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -532,7 +530,6 @@ struct Factory
|
|||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
Iterator::Iterator (const uint32_t* ptr, [[maybe_unused]] size_t bytes) noexcept
|
||||
|
|
@ -33,5 +31,4 @@ Iterator::Iterator (const uint32_t* ptr, [[maybe_unused]] size_t bytes) noexcept
|
|||
{
|
||||
}
|
||||
|
||||
} // namespace universal_midi_packets
|
||||
} // namespace juce
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -117,7 +115,6 @@ private:
|
|||
#endif
|
||||
};
|
||||
|
||||
} // namespace universal_midi_packets
|
||||
} // namespace juce
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -212,7 +210,6 @@ private:
|
|||
double pendingSysExTime = 0.0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
PacketX2 Midi1ToMidi2DefaultTranslator::processNoteOnOrOff (const HelperValues helpers)
|
||||
|
|
@ -197,5 +195,4 @@ bool Midi1ToMidi2DefaultTranslator::PnAccumulator::addByte (uint8_t cc, std::byt
|
|||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -185,7 +183,6 @@ private:
|
|||
std::array<ChannelBanks, 16> groupBanks;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/** The kinds of MIDI protocol that can be formatted into Universal MIDI Packets. */
|
||||
|
|
@ -42,7 +40,6 @@ enum class MidiProtocol
|
|||
UMP_MIDI_2_0,
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -40,7 +38,6 @@ struct Receiver
|
|||
virtual void packetReceived (const View& packet, double time) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
uint32_t SysEx7::getNumPacketsRequiredForDataSize (uint32_t size)
|
||||
|
|
@ -49,5 +47,4 @@ SysEx7::PacketBytes SysEx7::getDataBytes (const PacketX2& packet)
|
|||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -71,7 +69,6 @@ struct SysEx7
|
|||
static PacketBytes getDataBytes (const PacketX2& packet);
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
uint32_t Utils::getNumWordsForMessageType (uint32_t mt)
|
||||
|
|
@ -55,5 +53,4 @@ uint32_t Utils::getNumWordsForMessageType (uint32_t mt)
|
|||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -114,7 +112,6 @@ struct Utils
|
|||
static constexpr uint8_t getChannel (uint32_t w) noexcept { return U4<3>::get (w); }
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
uint32_t View::size() const noexcept
|
||||
|
|
@ -31,5 +29,4 @@ uint32_t View::size() const noexcept
|
|||
return Utils::getNumWordsForMessageType (*ptr);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -86,7 +84,6 @@ private:
|
|||
const uint32_t* ptr = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
constexpr uint8_t operator""_u8 (unsigned long long int i) { return static_cast<uint8_t> (i); }
|
||||
|
|
@ -1015,5 +1013,4 @@ private:
|
|||
|
||||
static UniversalMidiPacketTests universalMidiPacketTests;
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -187,7 +185,6 @@ using PacketX2 = Packet<2>;
|
|||
using PacketX3 = Packet<3>;
|
||||
using PacketX4 = Packet<4>;
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -90,7 +88,6 @@ private:
|
|||
std::vector<uint32_t> storage;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace SampleRateHelpers
|
||||
namespace juce::SampleRateHelpers
|
||||
{
|
||||
|
||||
static inline const std::vector<double>& getAllSampleRates()
|
||||
|
|
@ -44,5 +42,4 @@ static inline const std::vector<double>& getAllSampleRates()
|
|||
return sampleRates;
|
||||
}
|
||||
|
||||
} // namespace SampleRateHelpers
|
||||
} // namespace juce
|
||||
} // namespace juce::SampleRateHelpers
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -138,7 +136,6 @@ struct BytestreamToUMPHandler : public BytestreamInputHandler
|
|||
BytestreamToUMPDispatcher dispatcher;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // juce::universal_midi_packets
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -22,9 +22,7 @@
|
|||
|
||||
#ifndef DOXYGEN
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace universal_midi_packets
|
||||
namespace juce::universal_midi_packets
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -149,7 +147,7 @@ struct U32ToUMPHandler : public U32InputHandler
|
|||
GenericUMPConverter converter;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::universal_midi_packets
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -20,9 +20,6 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
/**
|
||||
Some shared helpers methods for using the high-performance audio paths on
|
||||
|
|
@ -30,7 +27,7 @@ namespace juce
|
|||
|
||||
@tags{Audio}
|
||||
*/
|
||||
namespace AndroidHighPerformanceAudioHelpers
|
||||
namespace juce::AndroidHighPerformanceAudioHelpers
|
||||
{
|
||||
//==============================================================================
|
||||
static double getNativeSampleRate()
|
||||
|
|
@ -126,6 +123,5 @@ namespace AndroidHighPerformanceAudioHelpers
|
|||
auto defaultBuffersToEnqueue = buffersToQueueForBufferDuration (nativeBufferSize, defaultBufferLength, currentSampleRate);
|
||||
return defaultBuffersToEnqueue * nativeBufferSize;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
} // namespace juce::AndroidHighPerformanceAudioHelpers
|
||||
|
|
|
|||
|
|
@ -2024,7 +2024,7 @@ struct MMDeviceMasterVolume
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MMDeviceMasterVolume)
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace WasapiClasses
|
||||
|
||||
//==============================================================================
|
||||
#define JUCE_SYSTEMAUDIOVOL_IMPLEMENTED 1
|
||||
|
|
|
|||
|
|
@ -56,9 +56,7 @@
|
|||
#error "You need to define the JucePlugin_LV2URI value! If you're using the Projucer/CMake, the definition will be written into JuceLV2Defines.h automatically."
|
||||
#endif
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace lv2_client
|
||||
namespace juce::lv2_client
|
||||
{
|
||||
|
||||
constexpr bool startsWithValidScheme (const std::string_view str)
|
||||
|
|
@ -1829,7 +1827,6 @@ LV2_SYMBOL_EXPORT const LV2UI_Descriptor* lv2ui_descriptor (uint32_t index)
|
|||
return &descriptor;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::lv2_client
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -74,9 +74,7 @@ JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|||
#include <map>
|
||||
#include <type_traits>
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace lv2_shared
|
||||
namespace juce::lv2_shared
|
||||
{
|
||||
|
||||
class AtomForge
|
||||
|
|
@ -664,7 +662,6 @@ static inline String sanitiseStringAsTtlName (const String& input)
|
|||
return String (CharPointer_UTF32 { sanitised.data() }, sanitised.size());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::lv2_shared
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5175,7 +5175,7 @@ private:
|
|||
JUCE_LEAK_DETECTOR (LV2AudioPluginInstance)
|
||||
};
|
||||
|
||||
} // namespace lv2
|
||||
} // namespace lv2_host
|
||||
|
||||
//==============================================================================
|
||||
class LV2PluginFormat::Pimpl
|
||||
|
|
|
|||
|
|
@ -33,9 +33,7 @@
|
|||
|
||||
#include <vector>
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace lv2
|
||||
namespace juce::lv2
|
||||
{
|
||||
|
||||
struct BundleResource
|
||||
|
|
@ -52,8 +50,7 @@ struct Bundle
|
|||
static std::vector<Bundle> getAllBundles();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce::lv2
|
||||
|
||||
std::vector<juce::lv2::Bundle> juce::lv2::Bundle::getAllBundles()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,13 +26,10 @@
|
|||
#ifndef DOXYGEN
|
||||
|
||||
// Forward declarations to avoid leaking implementation details.
|
||||
namespace Steinberg
|
||||
namespace Steinberg::Vst
|
||||
{
|
||||
namespace Vst
|
||||
{
|
||||
class IComponent;
|
||||
}
|
||||
} // namespace Steinberg
|
||||
} // namespace Steinberg::Vst
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -360,5 +360,5 @@ public:
|
|||
FixedSizeFunctionTest fixedSizedFunctionTest;
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace juce
|
||||
#undef JUCE_FAIL_ON_ALLOCATION_IN_SCOPE
|
||||
|
|
|
|||
|
|
@ -20,11 +20,9 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
namespace juce::UnitTestCategories
|
||||
{
|
||||
|
||||
namespace UnitTestCategories
|
||||
{
|
||||
static const String analytics { "Analytics" };
|
||||
static const String audio { "Audio" };
|
||||
static const String audioProcessorParameters { "AudioProcessorParameters" };
|
||||
|
|
@ -50,6 +48,5 @@ namespace UnitTestCategories
|
|||
static const String time { "Time" };
|
||||
static const String values { "Values" };
|
||||
static const String xml { "XML" };
|
||||
}
|
||||
|
||||
} // namespace juce
|
||||
} // namespace juce::UnitTestCategories
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN
|
||||
|
|
@ -891,5 +889,4 @@ private:
|
|||
friend class AudioBlock;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
#if JUCE_USE_SIMD
|
||||
|
|
@ -496,5 +494,4 @@ static AudioBlockUnitTests<SIMDRegister<float>> audioBlockSIMDFloatUnitTests;
|
|||
static AudioBlockUnitTests<SIMDRegister<double>> audioBlockSIMDDoubleUnitTests;
|
||||
#endif
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN
|
||||
|
|
@ -392,9 +390,4 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
|
||||
#ifndef DOXYGEN
|
||||
#include "juce_SIMDRegister_Impl.h"
|
||||
#endif
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
namespace SIMDRegister_test_internal
|
||||
|
|
@ -876,5 +874,4 @@ public:
|
|||
|
||||
static SIMDRegisterUnitTests SIMDRegisterUnitTests;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
template <typename FloatType>
|
||||
|
|
@ -697,5 +695,4 @@ typename FilterDesign<FloatType>::IIRPolyphaseAllpassStructure
|
|||
template struct FilterDesign<float>;
|
||||
template struct FilterDesign<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -295,5 +293,4 @@ private:
|
|||
FilterDesign() = delete;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
template <typename Element>
|
||||
|
|
@ -1293,5 +1291,4 @@ int Convolution::getCurrentIRSize() const { return pimpl->getCurrentIRSize(); }
|
|||
|
||||
int Convolution::getLatency() const { return pimpl->getLatency(); }
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -306,5 +304,4 @@ private:
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Convolution)
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -29,9 +29,7 @@
|
|||
#define JUCE_FAIL_ON_ALLOCATION_IN_SCOPE
|
||||
#endif
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
namespace
|
||||
{
|
||||
|
|
@ -575,7 +573,6 @@ public:
|
|||
ConvolutionTest convolutionUnitTest;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace juce::dsp
|
||||
|
||||
#undef JUCE_FAIL_ON_ALLOCATION_IN_SCOPE
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
struct FFT::Instance
|
||||
|
|
@ -997,5 +995,4 @@ void FFT::performFrequencyOnlyForwardTransform (float* inputOutputData, bool ign
|
|||
zeromem (inputOutputData + limit, static_cast<size_t> (size * 2 - limit) * sizeof (float));
|
||||
}
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -128,5 +126,4 @@ private:
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FFT)
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
struct FFTUnitTest : public UnitTest
|
||||
|
|
@ -214,5 +212,4 @@ struct FFTUnitTest : public UnitTest
|
|||
|
||||
static FFTUnitTest fftUnitTest;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
template <typename FloatType>
|
||||
|
|
@ -192,5 +190,4 @@ const char* WindowingFunction<FloatType>::getWindowingMethodName (WindowingMetho
|
|||
template class WindowingFunction<float>;
|
||||
template class WindowingFunction<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -107,5 +105,4 @@ private:
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WindowingFunction)
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@
|
|||
|
||||
#include "processors/juce_FIRFilter.cpp"
|
||||
#include "processors/juce_IIRFilter.cpp"
|
||||
#include "processors/juce_IIRFilter_Impl.h"
|
||||
#include "processors/juce_FirstOrderTPTFilter.cpp"
|
||||
#include "processors/juce_Panner.cpp"
|
||||
#include "processors/juce_Oversampling.cpp"
|
||||
|
|
|
|||
|
|
@ -188,19 +188,18 @@
|
|||
#undef Factor
|
||||
#undef check
|
||||
|
||||
namespace juce
|
||||
namespace juce::dsp
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
template <typename Type>
|
||||
using Complex = std::complex<Type>;
|
||||
|
||||
template <size_t len, typename T>
|
||||
using FixedSizeFunction = juce::FixedSizeFunction<len, T>;
|
||||
template <typename Type>
|
||||
using Complex = std::complex<Type>;
|
||||
|
||||
//==============================================================================
|
||||
namespace util
|
||||
{
|
||||
template <size_t len, typename T>
|
||||
using FixedSizeFunction = juce::FixedSizeFunction<len, T>;
|
||||
|
||||
//==============================================================================
|
||||
namespace util
|
||||
{
|
||||
/** Use this function to prevent denormals on intel CPUs.
|
||||
This function will work with both primitives and simple containers.
|
||||
*/
|
||||
|
|
@ -217,8 +216,8 @@ namespace juce
|
|||
inline void snapToZero ([[maybe_unused]] long double& x) noexcept {}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -255,6 +254,7 @@ namespace juce
|
|||
#include "processors/juce_ProcessorChain.h"
|
||||
#include "processors/juce_ProcessorDuplicator.h"
|
||||
#include "processors/juce_IIRFilter.h"
|
||||
#include "processors/juce_IIRFilter_Impl.h"
|
||||
#include "processors/juce_FIRFilter.h"
|
||||
#include "processors/juce_StateVariableFilter.h"
|
||||
#include "processors/juce_FirstOrderTPTFilter.h"
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -260,5 +258,4 @@ struct FastMathApproximations
|
|||
}
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -185,5 +183,4 @@ private:
|
|||
FloatType temp = 0, source = 0, r = 0, d = 1;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
static CommonSmoothedValueTests <LogRampedValue <float>> commonLogRampedValueTests;
|
||||
|
|
@ -92,5 +90,4 @@ public:
|
|||
|
||||
static LogRampedValueTests LogRampedValueTests;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
template <typename FloatType>
|
||||
|
|
@ -152,5 +150,4 @@ template class LookupTable<double>;
|
|||
template class LookupTableTransform<float>;
|
||||
template class LookupTableTransform<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -326,5 +324,4 @@ private:
|
|||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookupTableTransform)
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
template <typename ElementType>
|
||||
|
|
@ -313,5 +311,4 @@ String Matrix<ElementType>::toString() const
|
|||
template class Matrix<float>;
|
||||
template class Matrix<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -250,5 +248,4 @@ private:
|
|||
JUCE_LEAK_DETECTOR (Matrix)
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
struct LinearAlgebraUnitTest : public UnitTest
|
||||
|
|
@ -169,5 +167,4 @@ struct LinearAlgebraUnitTest : public UnitTest
|
|||
|
||||
static LinearAlgebraUnitTest linearAlgebraUnitTest;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -63,5 +61,4 @@ struct Phase
|
|||
Type phase = 0;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
@ -164,5 +162,4 @@ private:
|
|||
JUCE_LEAK_DETECTOR (Polynomial)
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
double SpecialFunctions::besselI0 (double x) noexcept
|
||||
|
|
@ -139,5 +137,4 @@ Complex<double> SpecialFunctions::asne (Complex<double> w, double k) noexcept
|
|||
return 2.0 / MathConstants<double>::pi * std::asin (last);
|
||||
}
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,11 +23,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
namespace juce::dsp
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
|
||||
/**
|
||||
Contains miscellaneous filter design and windowing functions.
|
||||
|
||||
|
|
@ -63,5 +60,4 @@ struct SpecialFunctions
|
|||
static Complex<double> asne (Complex<double> w, double k) noexcept;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,10 +23,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
namespace juce::dsp
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
DEFINE_AVX_SIMD_CONST (int32_t, float, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
|
||||
DEFINE_AVX_SIMD_CONST (int32_t, float, kEvenHighBit) = { static_cast<int32_t> (0x80000000), 0, static_cast<int32_t> (0x80000000), 0, static_cast<int32_t> (0x80000000), 0, static_cast<int32_t> (0x80000000), 0 };
|
||||
DEFINE_AVX_SIMD_CONST (float, float, kOne) = { 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
|
|
@ -54,5 +52,4 @@ namespace juce
|
|||
|
||||
DEFINE_AVX_SIMD_CONST (uint64_t, uint64_t, kAllBitsSet) = { 0xffffffffffffffffULL, 0xffffffffffffffffULL, 0xffffffffffffffffULL, 0xffffffffffffffffULL };
|
||||
DEFINE_AVX_SIMD_CONST (uint64_t, uint64_t, kHighBit) = { 0x8000000000000000ULL, 0x8000000000000000ULL, 0x8000000000000000ULL, 0x8000000000000000ULL };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN
|
||||
|
|
@ -657,5 +655,4 @@ struct SIMDNativeOps<uint64_t>
|
|||
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
/** A template specialisation to find corresponding mask type for primitives. */
|
||||
|
|
@ -263,5 +261,4 @@ struct SIMDFallbackOps
|
|||
}
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,10 +23,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
namespace juce::dsp
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
DEFINE_NEON_SIMD_CONST (int32_t, float, kAllBitsSet) = { -1, -1, -1, -1 };
|
||||
DEFINE_NEON_SIMD_CONST (int32_t, float, kEvenHighBit) = { static_cast<int32_t> (0x80000000), 0, static_cast<int32_t> (0x80000000), 0 };
|
||||
DEFINE_NEON_SIMD_CONST (float, float, kOne) = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
|
|
@ -44,5 +42,4 @@ namespace juce
|
|||
DEFINE_NEON_SIMD_CONST (uint32_t, uint32_t, kAllBitsSet) = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff };
|
||||
DEFINE_NEON_SIMD_CONST (int64_t, int64_t, kAllBitsSet) = { -1, -1 };
|
||||
DEFINE_NEON_SIMD_CONST (uint64_t, uint64_t, kAllBitsSet) = { 0xffffffffffffffff, 0xffffffffffffffff };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN
|
||||
|
|
@ -538,5 +536,4 @@ struct SIMDNativeOps<double>
|
|||
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,10 +23,8 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
namespace juce::dsp
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
DEFINE_SSE_SIMD_CONST (int32_t, float, kAllBitsSet) = { -1, -1, -1, -1 };
|
||||
DEFINE_SSE_SIMD_CONST (int32_t, float, kEvenHighBit) = { static_cast<int32_t> (0x80000000), 0, static_cast<int32_t> (0x80000000), 0 };
|
||||
DEFINE_SSE_SIMD_CONST (float, float, kOne) = { 1.0f, 1.0f, 1.0f, 1.0f };
|
||||
|
|
@ -54,5 +52,4 @@ namespace juce
|
|||
|
||||
DEFINE_SSE_SIMD_CONST (uint64_t, uint64_t, kAllBitsSet) = { 0xffffffffffffffff, 0xffffffffffffffff };
|
||||
DEFINE_SSE_SIMD_CONST (uint64_t, uint64_t, kHighBit) = { 0x8000000000000000, 0x8000000000000000 };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
#ifndef DOXYGEN
|
||||
|
|
@ -727,5 +725,4 @@ struct SIMDNativeOps<uint64_t>
|
|||
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -126,5 +124,4 @@ SampleType BallisticsFilter<SampleType>::calculateLimitedCte (SampleType timeMs)
|
|||
template class BallisticsFilter<float>;
|
||||
template class BallisticsFilter<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
enum class BallisticsFilterLevelCalculationType
|
||||
|
|
@ -146,5 +144,4 @@ private:
|
|||
LevelCalculationType levelType = LevelCalculationType::peak;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -134,5 +132,4 @@ template class DelayLine<double, DelayLineInterpolationTypes::Lagrange3rd>;
|
|||
template class DelayLine<float, DelayLineInterpolationTypes::Thiran>;
|
||||
template class DelayLine<double, DelayLineInterpolationTypes::Thiran>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -313,5 +311,4 @@ private:
|
|||
SampleType alpha = 0.0;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -367,5 +365,4 @@ static const DryWetMixerTests dryWetMixerTests;
|
|||
|
||||
#endif
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
enum class DryWetMixingRule
|
||||
|
|
@ -116,5 +114,4 @@ private:
|
|||
int maximumWetLatencyInSamples = 0;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
template <typename NumericType>
|
||||
|
|
@ -157,5 +155,4 @@ void FIR::Coefficients<NumericType>::Coefficients::normalise() noexcept
|
|||
template struct FIR::Coefficients<float>;
|
||||
template struct FIR::Coefficients<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,15 +23,10 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
|
||||
/**
|
||||
Classes for FIR filter processing.
|
||||
*/
|
||||
namespace FIR
|
||||
namespace juce::dsp::FIR
|
||||
{
|
||||
template <typename NumericType>
|
||||
struct Coefficients;
|
||||
|
|
@ -279,7 +274,5 @@ namespace FIR
|
|||
*/
|
||||
Array<NumericType> coefficients;
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp::FIR
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
class FIRFilterTest : public UnitTest
|
||||
|
|
@ -218,5 +216,4 @@ public:
|
|||
|
||||
static FIRFilterTest firFilterUnitTest;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -118,5 +116,4 @@ void FirstOrderTPTFilter<SampleType>::update()
|
|||
template class FirstOrderTPTFilter<float>;
|
||||
template class FirstOrderTPTFilter<double>;
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
namespace juce::dsp
|
||||
{
|
||||
|
||||
enum class FirstOrderTPTFilterType
|
||||
|
|
@ -147,5 +145,4 @@ private:
|
|||
SampleType cutoffFrequency = 1000.0;
|
||||
};
|
||||
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp
|
||||
|
|
|
|||
|
|
@ -23,11 +23,7 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
namespace IIR
|
||||
namespace juce::dsp::IIR
|
||||
{
|
||||
|
||||
constexpr auto minimumDecibels = -300.0;
|
||||
|
|
@ -574,6 +570,4 @@ void Coefficients<NumericType>::getPhaseForFrequencyArray (double* frequencies,
|
|||
template struct Coefficients<float>;
|
||||
template struct Coefficients<double>;
|
||||
|
||||
} // namespace IIR
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
} // namespace juce::dsp::IIR
|
||||
|
|
|
|||
|
|
@ -23,15 +23,10 @@
|
|||
==============================================================================
|
||||
*/
|
||||
|
||||
namespace juce
|
||||
{
|
||||
namespace dsp
|
||||
{
|
||||
|
||||
/**
|
||||
Classes for IIR filter processing.
|
||||
*/
|
||||
namespace IIR
|
||||
namespace juce::dsp::IIR
|
||||
{
|
||||
/** A set of coefficients for use in an Filter object.
|
||||
|
||||
|
|
@ -396,8 +391,4 @@ namespace IIR
|
|||
|
||||
JUCE_LEAK_DETECTOR (Filter)
|
||||
};
|
||||
} // namespace IIR
|
||||
} // namespace dsp
|
||||
} // namespace juce
|
||||
|
||||
#include "juce_IIRFilter_Impl.h"
|
||||
} // namespace juce::dsp::IIR
|
||||
|
|
|
|||
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