Browse Source

Formatting: Use nested namespace definitions

v7.0.9
Anthony Nicholls 1 year ago
parent
commit
158220ddfa
100 changed files with 312 additions and 574 deletions
  1. +1
    -0
      .clang-tidy
  2. +4
    -5
      extras/Build/juce_build_tools/utils/juce_BinaryResourceFile.cpp
  3. +4
    -5
      extras/Build/juce_build_tools/utils/juce_BinaryResourceFile.h
  4. +4
    -5
      extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.cpp
  5. +4
    -5
      extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.h
  6. +4
    -5
      extras/Build/juce_build_tools/utils/juce_CppTokeniserFunctions.cpp
  7. +4
    -5
      extras/Build/juce_build_tools/utils/juce_Entitlements.cpp
  8. +4
    -5
      extras/Build/juce_build_tools/utils/juce_Entitlements.h
  9. +4
    -5
      extras/Build/juce_build_tools/utils/juce_Icons.cpp
  10. +4
    -5
      extras/Build/juce_build_tools/utils/juce_Icons.h
  11. +4
    -5
      extras/Build/juce_build_tools/utils/juce_PlistOptions.cpp
  12. +4
    -5
      extras/Build/juce_build_tools/utils/juce_PlistOptions.h
  13. +4
    -5
      extras/Build/juce_build_tools/utils/juce_ProjectType.h
  14. +4
    -5
      extras/Build/juce_build_tools/utils/juce_RelativePath.h
  15. +4
    -5
      extras/Build/juce_build_tools/utils/juce_ResourceFileHelpers.cpp
  16. +4
    -5
      extras/Build/juce_build_tools/utils/juce_ResourceFileHelpers.h
  17. +4
    -5
      extras/Build/juce_build_tools/utils/juce_ResourceRc.cpp
  18. +4
    -5
      extras/Build/juce_build_tools/utils/juce_ResourceRc.h
  19. +4
    -5
      extras/Build/juce_build_tools/utils/juce_VersionNumbers.cpp
  20. +4
    -5
      extras/Build/juce_build_tools/utils/juce_VersionNumbers.h
  21. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPConversion.h
  22. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPConverters.h
  23. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPDispatcher.h
  24. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPFactory.h
  25. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPIterator.cpp
  26. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPIterator.h
  27. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToBytestreamTranslator.h
  28. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.cpp
  29. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.h
  30. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPProtocols.h
  31. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPReceiver.h
  32. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.cpp
  33. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.h
  34. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPUtils.cpp
  35. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPUtils.h
  36. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPView.cpp
  37. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPView.h
  38. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMP_test.cpp
  39. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPacket.h
  40. +2
    -5
      modules/juce_audio_basics/midi/ump/juce_UMPackets.h
  41. +2
    -5
      modules/juce_audio_devices/audio_io/juce_SampleRateHelpers.cpp
  42. +2
    -5
      modules/juce_audio_devices/midi_io/ump/juce_UMPBytestreamInputHandler.h
  43. +3
    -5
      modules/juce_audio_devices/midi_io/ump/juce_UMPU32InputHandler.h
  44. +2
    -6
      modules/juce_audio_devices/native/juce_HighPerformanceAudioHelpers_android.h
  45. +1
    -1
      modules/juce_audio_devices/native/juce_WASAPI_windows.cpp
  46. +2
    -5
      modules/juce_audio_plugin_client/juce_audio_plugin_client_LV2.cpp
  47. +2
    -5
      modules/juce_audio_processors/format_types/juce_LV2Common.h
  48. +1
    -1
      modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp
  49. +2
    -5
      modules/juce_audio_processors/format_types/juce_LV2Resources.h
  50. +3
    -6
      modules/juce_audio_processors/utilities/juce_ExtensionsVisitor.h
  51. +1
    -1
      modules/juce_core/containers/juce_FixedSizeFunction_test.cpp
  52. +2
    -5
      modules/juce_core/unit_tests/juce_UnitTestCategories.h
  53. +2
    -5
      modules/juce_dsp/containers/juce_AudioBlock.h
  54. +2
    -5
      modules/juce_dsp/containers/juce_AudioBlock_test.cpp
  55. +2
    -9
      modules/juce_dsp/containers/juce_SIMDRegister.h
  56. +2
    -5
      modules/juce_dsp/containers/juce_SIMDRegister_test.cpp
  57. +2
    -5
      modules/juce_dsp/filter_design/juce_FilterDesign.cpp
  58. +2
    -5
      modules/juce_dsp/filter_design/juce_FilterDesign.h
  59. +2
    -5
      modules/juce_dsp/frequency/juce_Convolution.cpp
  60. +2
    -5
      modules/juce_dsp/frequency/juce_Convolution.h
  61. +2
    -5
      modules/juce_dsp/frequency/juce_Convolution_test.cpp
  62. +2
    -5
      modules/juce_dsp/frequency/juce_FFT.cpp
  63. +2
    -5
      modules/juce_dsp/frequency/juce_FFT.h
  64. +2
    -5
      modules/juce_dsp/frequency/juce_FFT_test.cpp
  65. +2
    -5
      modules/juce_dsp/frequency/juce_Windowing.cpp
  66. +2
    -5
      modules/juce_dsp/frequency/juce_Windowing.h
  67. +0
    -1
      modules/juce_dsp/juce_dsp.cpp
  68. +30
    -30
      modules/juce_dsp/juce_dsp.h
  69. +2
    -5
      modules/juce_dsp/maths/juce_FastMathApproximations.h
  70. +2
    -5
      modules/juce_dsp/maths/juce_LogRampedValue.h
  71. +2
    -5
      modules/juce_dsp/maths/juce_LogRampedValue_test.cpp
  72. +2
    -5
      modules/juce_dsp/maths/juce_LookupTable.cpp
  73. +2
    -5
      modules/juce_dsp/maths/juce_LookupTable.h
  74. +2
    -5
      modules/juce_dsp/maths/juce_Matrix.cpp
  75. +2
    -5
      modules/juce_dsp/maths/juce_Matrix.h
  76. +2
    -5
      modules/juce_dsp/maths/juce_Matrix_test.cpp
  77. +2
    -5
      modules/juce_dsp/maths/juce_Phase.h
  78. +2
    -5
      modules/juce_dsp/maths/juce_Polynomial.h
  79. +2
    -5
      modules/juce_dsp/maths/juce_SpecialFunctions.cpp
  80. +2
    -6
      modules/juce_dsp/maths/juce_SpecialFunctions.h
  81. +19
    -22
      modules/juce_dsp/native/juce_SIMDNativeOps_avx.cpp
  82. +2
    -5
      modules/juce_dsp/native/juce_SIMDNativeOps_avx.h
  83. +2
    -5
      modules/juce_dsp/native/juce_SIMDNativeOps_fallback.h
  84. +18
    -21
      modules/juce_dsp/native/juce_SIMDNativeOps_neon.cpp
  85. +2
    -5
      modules/juce_dsp/native/juce_SIMDNativeOps_neon.h
  86. +19
    -22
      modules/juce_dsp/native/juce_SIMDNativeOps_sse.cpp
  87. +2
    -5
      modules/juce_dsp/native/juce_SIMDNativeOps_sse.h
  88. +2
    -5
      modules/juce_dsp/processors/juce_BallisticsFilter.cpp
  89. +2
    -5
      modules/juce_dsp/processors/juce_BallisticsFilter.h
  90. +2
    -5
      modules/juce_dsp/processors/juce_DelayLine.cpp
  91. +2
    -5
      modules/juce_dsp/processors/juce_DelayLine.h
  92. +2
    -5
      modules/juce_dsp/processors/juce_DryWetMixer.cpp
  93. +2
    -5
      modules/juce_dsp/processors/juce_DryWetMixer.h
  94. +2
    -5
      modules/juce_dsp/processors/juce_FIRFilter.cpp
  95. +2
    -9
      modules/juce_dsp/processors/juce_FIRFilter.h
  96. +2
    -5
      modules/juce_dsp/processors/juce_FIRFilter_test.cpp
  97. +2
    -5
      modules/juce_dsp/processors/juce_FirstOrderTPTFilter.cpp
  98. +2
    -5
      modules/juce_dsp/processors/juce_FirstOrderTPTFilter.h
  99. +2
    -8
      modules/juce_dsp/processors/juce_IIRFilter.cpp
  100. +2
    -11
      modules/juce_dsp/processors/juce_IIRFilter.h

+ 1
- 0
.clang-tidy View File

@@ -3,6 +3,7 @@ Checks: >
-clang-analyzer-optin.performance.Padding, -clang-analyzer-optin.performance.Padding,
-clang-analyzer-security.FloatLoopCounter, -clang-analyzer-security.FloatLoopCounter,
-clang-analyzer-security.insecureAPI.strcpy, -clang-analyzer-security.insecureAPI.strcpy,
modernize-concat-nested-namespaces,


WarningsAsErrors: '*' WarningsAsErrors: '*'




+ 4
- 5
extras/Build/juce_build_tools/utils/juce_BinaryResourceFile.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
static const char* resourceFileIdentifierString = "JUCER_BINARY_RESOURCE"; static const char* resourceFileIdentifierString = "JUCER_BINARY_RESOURCE";
//============================================================================== //==============================================================================
@@ -285,5 +284,5 @@ namespace build_tools
return { Result::ok(), std::move (filesCreated) }; return { Result::ok(), std::move (filesCreated) };
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_BinaryResourceFile.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
class ResourceFile class ResourceFile
{ {
public: public:
@@ -70,5 +69,5 @@ namespace build_tools
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ResourceFile) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ResourceFile)
}; };
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.cpp View File

@@ -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 MemoryOutputStream& newData)
{ {
if (! overwriteFileWithNewDataIfDifferent (file, newData)) if (! overwriteFileWithNewDataIfDifferent (file, newData))
@@ -355,5 +354,5 @@ namespace build_tools
writer (mo); writer (mo);
overwriteFileIfDifferentOrThrow (file, mo); overwriteFileIfDifferentOrThrow (file, mo);
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_BuildHelperFunctions.h View File

@@ -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 MemoryOutputStream& newData);
void overwriteFileIfDifferentOrThrow (const File& file, const String& newData); void overwriteFileIfDifferentOrThrow (const File& file, const String& newData);
@@ -82,5 +81,5 @@ namespace build_tools
String getRelativePathFrom (const File& file, const File& sourceFolder); String getRelativePathFrom (const File& file, const File& sourceFolder);
void writeStreamToFile (const File& file, const std::function<void (MemoryOutputStream&)>& writer); void writeStreamToFile (const File& file, const std::function<void (MemoryOutputStream&)>& writer);
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_CppTokeniserFunctions.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
static bool isReservedKeyword (String::CharPointerType token, const int tokenLength) noexcept static bool isReservedKeyword (String::CharPointerType token, const int tokenLength) noexcept
{ {
static const char* const keywords2Char[] = static const char* const keywords2Char[] =
@@ -202,5 +201,5 @@ namespace build_tools
} }
} }
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_Entitlements.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce:: build_tools
{ {
String EntitlementOptions::getEntitlementsFileContent() const String EntitlementOptions::getEntitlementsFileContent() const
{ {
String content = String content =
@@ -132,5 +131,5 @@ namespace build_tools
return entitlements; return entitlements;
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_Entitlements.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
struct EntitlementOptions final struct EntitlementOptions final
{ {
String getEntitlementsFileContent() const; String getEntitlementsFileContent() const;
@@ -61,5 +60,5 @@ namespace build_tools
private: private:
StringPairArray getEntitlements() const; StringPairArray getEntitlements() const;
}; };
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_Icons.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
Array<Drawable*> asArray (const Icons& icons) Array<Drawable*> asArray (const Icons& icons)
{ {
Array<Drawable*> result; Array<Drawable*> result;
@@ -495,5 +494,5 @@ namespace build_tools
return { assets, targetFolder, RelativePath::buildTargetFolder }; return { assets, targetFolder, RelativePath::buildTargetFolder };
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_Icons.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
struct Icons struct Icons
{ {
std::unique_ptr<Drawable> small; std::unique_ptr<Drawable> small;
@@ -45,5 +44,5 @@ namespace build_tools
RelativePath createXcassetsFolderFromIcons (const Icons& icons, RelativePath createXcassetsFolderFromIcons (const Icons& icons,
const File& targetFolder, const File& targetFolder,
String projectFilenameRootString); String projectFilenameRootString);
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_PlistOptions.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
//============================================================================== //==============================================================================
static XmlElement* getKeyWithName (XmlElement& xml, const String& key) static XmlElement* getKeyWithName (XmlElement& xml, const String& key)
{ {
@@ -374,5 +373,5 @@ namespace build_tools
return { plistKey, plistEntry }; return { plistKey, plistEntry };
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_PlistOptions.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
class PlistOptions final class PlistOptions final
{ {
public: public:
@@ -103,5 +102,5 @@ namespace build_tools
Array<XmlElement> createExtraAudioUnitTargetPlistOptions() const; Array<XmlElement> createExtraAudioUnitTargetPlistOptions() const;
Array<XmlElement> createExtraAudioUnitV3TargetPlistOptions() const; Array<XmlElement> createExtraAudioUnitV3TargetPlistOptions() const;
}; };
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_ProjectType.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
//============================================================================== //==============================================================================
class ProjectType class ProjectType
{ {
@@ -321,5 +320,5 @@ namespace build_tools
return Array<ProjectType*> (&guiApp, &consoleApp, &staticLib, &dll, &plugin, &araplugin); return Array<ProjectType*> (&guiApp, &consoleApp, &staticLib, &dll, &plugin, &araplugin);
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_RelativePath.h View File

@@ -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 /** Manipulates a cross-platform partial file path. (Needed because File is designed
for absolute paths on the active OS) for absolute paths on the active OS)
@@ -125,5 +124,5 @@ namespace build_tools
return currentWorkingDirectory.getChildFile (path); return currentWorkingDirectory.getChildFile (path);
} }
}; };
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_ResourceFileHelpers.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
uint64 calculateStreamHashCode (InputStream& in) uint64 calculateStreamHashCode (InputStream& in)
{ {
uint64 t = 0; uint64 t = 0;
@@ -87,5 +86,5 @@ namespace build_tools
const char* const utf8 = newData.toUTF8(); const char* const utf8 = newData.toUTF8();
return overwriteFileWithNewDataIfDifferent (file, utf8, strlen (utf8)); return overwriteFileWithNewDataIfDifferent (file, utf8, strlen (utf8));
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_ResourceFileHelpers.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce:: build_tools
{ {
uint64 calculateStreamHashCode (InputStream& in); uint64 calculateStreamHashCode (InputStream& in);
uint64 calculateFileHashCode (const File& file); uint64 calculateFileHashCode (const File& file);
uint64 calculateMemoryHashCode (const void* data, size_t numBytes); 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 void* data, size_t numBytes);
bool overwriteFileWithNewDataIfDifferent (const File& file, const MemoryOutputStream& newData); bool overwriteFileWithNewDataIfDifferent (const File& file, const MemoryOutputStream& newData);
bool overwriteFileWithNewDataIfDifferent (const File& file, const String& newData); bool overwriteFileWithNewDataIfDifferent (const File& file, const String& newData);
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_ResourceRc.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
static String getCommaSeparatedVersionNumber (const String& version) static String getCommaSeparatedVersionNumber (const String& version)
{ {
auto versionParts = StringArray::fromTokens (version, ",.", ""); auto versionParts = StringArray::fromTokens (version, ",.", "");
@@ -93,5 +92,5 @@ namespace build_tools
overwriteFileIfDifferentOrThrow (resourceRcFile, mo); overwriteFileIfDifferentOrThrow (resourceRcFile, mo);
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_ResourceRc.h View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
class ResourceRcOptions final class ResourceRcOptions final
{ {
public: public:
@@ -39,5 +38,5 @@ namespace build_tools
String projectName; String projectName;
File icon; File icon;
}; };
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_VersionNumbers.cpp View File

@@ -23,10 +23,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
StringArray getVersionSegments (StringRef p) StringArray getVersionSegments (StringRef p)
{ {
auto segments = StringArray::fromTokens (p, ",.", ""); auto segments = StringArray::fromTokens (p, ",.", "");
@@ -56,5 +55,5 @@ namespace build_tools
{ {
return "0x" + String::toHexString (getVersionAsHexInteger (versionString)); return "0x" + String::toHexString (getVersionAsHexInteger (versionString));
} }
}
}
} // namespace juce::build_tools

+ 4
- 5
extras/Build/juce_build_tools/utils/juce_VersionNumbers.h View File

@@ -23,15 +23,14 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace build_tools
namespace juce::build_tools
{ {
StringArray getVersionSegments (StringRef p); StringArray getVersionSegments (StringRef p);
int getVersionAsHexIntegerFromParts (const StringArray& versionString); int getVersionAsHexIntegerFromParts (const StringArray& versionString);
int getVersionAsHexInteger (StringRef versionString); int getVersionAsHexInteger (StringRef versionString);
String getVersionAsHex (StringRef versionString); String getVersionAsHex (StringRef versionString);
}
}
} // namespace juce::build_tools

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPConversion.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** Represents a MIDI message that happened at a particular time. /** Represents a MIDI message that happened at a particular time.
@@ -352,7 +350,6 @@ struct Conversion
} }
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPConverters.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
Allows conversion from bytestream- or Universal MIDI Packet-formatted Allows conversion from bytestream- or Universal MIDI Packet-formatted
@@ -182,7 +180,6 @@ namespace universal_midi_packets
Midi1ToBytestreamTranslator translator; Midi1ToBytestreamTranslator translator;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPDispatcher.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -196,7 +194,6 @@ private:
ToBytestreamConverter converter; ToBytestreamConverter converter;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPFactory.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #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 #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPIterator.cpp View File

@@ -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 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

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPIterator.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -117,7 +115,6 @@ private:
#endif #endif
}; };
} // namespace universal_midi_packets
} // namespace juce
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToBytestreamTranslator.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -212,7 +210,6 @@ private:
double pendingSysExTime = 0.0; double pendingSysExTime = 0.0;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.cpp View File

@@ -20,9 +20,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
PacketX2 Midi1ToMidi2DefaultTranslator::processNoteOnOrOff (const HelperValues helpers) PacketX2 Midi1ToMidi2DefaultTranslator::processNoteOnOrOff (const HelperValues helpers)
@@ -197,5 +195,4 @@ bool Midi1ToMidi2DefaultTranslator::PnAccumulator::addByte (uint8_t cc, std::byt
return true; return true;
} }
}
}
} // namespace juce::universal_midi_packets

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPMidi1ToMidi2DefaultTranslator.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -185,7 +183,6 @@ private:
std::array<ChannelBanks, 16> groupBanks; std::array<ChannelBanks, 16> groupBanks;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPProtocols.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #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. */ /** The kinds of MIDI protocol that can be formatted into Universal MIDI Packets. */
@@ -42,7 +40,6 @@ enum class MidiProtocol
UMP_MIDI_2_0, UMP_MIDI_2_0,
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPReceiver.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #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; virtual void packetReceived (const View& packet, double time) = 0;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.cpp View File

@@ -20,9 +20,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
uint32_t SysEx7::getNumPacketsRequiredForDataSize (uint32_t size) uint32_t SysEx7::getNumPacketsRequiredForDataSize (uint32_t size)
@@ -49,5 +47,4 @@ SysEx7::PacketBytes SysEx7::getDataBytes (const PacketX2& packet)
}; };
} }
}
}
} // namespace juce::universal_midi_packets

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPSysEx7.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #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); static PacketBytes getDataBytes (const PacketX2& packet);
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPUtils.cpp View File

@@ -20,9 +20,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
uint32_t Utils::getNumWordsForMessageType (uint32_t mt) uint32_t Utils::getNumWordsForMessageType (uint32_t mt)
@@ -55,5 +53,4 @@ uint32_t Utils::getNumWordsForMessageType (uint32_t mt)
return 1; return 1;
} }
}
}
} // namespace juce::universal_midi_packets

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPUtils.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #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); } static constexpr uint8_t getChannel (uint32_t w) noexcept { return U4<3>::get (w); }
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPView.cpp View File

@@ -20,9 +20,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
uint32_t View::size() const noexcept uint32_t View::size() const noexcept
@@ -31,5 +29,4 @@ uint32_t View::size() const noexcept
return Utils::getNumWordsForMessageType (*ptr); return Utils::getNumWordsForMessageType (*ptr);
} }
}
}
} // namespace juce::universal_midi_packets

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPView.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -86,7 +84,6 @@ private:
const uint32_t* ptr = nullptr; const uint32_t* ptr = nullptr;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMP_test.cpp View File

@@ -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); } constexpr uint8_t operator""_u8 (unsigned long long int i) { return static_cast<uint8_t> (i); }
@@ -1015,5 +1013,4 @@ private:
static UniversalMidiPacketTests universalMidiPacketTests; static UniversalMidiPacketTests universalMidiPacketTests;
}
}
} // namespace juce::universal_midi_packets

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPacket.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #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 PacketX3 = Packet<3>;
using PacketX4 = Packet<4>; using PacketX4 = Packet<4>;
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_basics/midi/ump/juce_UMPackets.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -90,7 +88,6 @@ private:
std::vector<uint32_t> storage; std::vector<uint32_t> storage;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 5
modules/juce_audio_devices/audio_io/juce_SampleRateHelpers.cpp View File

@@ -20,9 +20,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace SampleRateHelpers
namespace juce::SampleRateHelpers
{ {
static inline const std::vector<double>& getAllSampleRates() static inline const std::vector<double>& getAllSampleRates()
@@ -44,5 +42,4 @@ static inline const std::vector<double>& getAllSampleRates()
return sampleRates; return sampleRates;
} }
} // namespace SampleRateHelpers
} // namespace juce
} // namespace juce::SampleRateHelpers

+ 2
- 5
modules/juce_audio_devices/midi_io/ump/juce_UMPBytestreamInputHandler.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -138,7 +136,6 @@ struct BytestreamToUMPHandler : public BytestreamInputHandler
BytestreamToUMPDispatcher dispatcher; BytestreamToUMPDispatcher dispatcher;
}; };
}
}
} // juce::universal_midi_packets
#endif #endif

+ 3
- 5
modules/juce_audio_devices/midi_io/ump/juce_UMPU32InputHandler.h View File

@@ -22,9 +22,7 @@
#ifndef DOXYGEN #ifndef DOXYGEN
namespace juce
{
namespace universal_midi_packets
namespace juce::universal_midi_packets
{ {
/** /**
@@ -149,7 +147,7 @@ struct U32ToUMPHandler : public U32InputHandler
GenericUMPConverter converter; GenericUMPConverter converter;
}; };
}
}
} // namespace juce::universal_midi_packets
#endif #endif

+ 2
- 6
modules/juce_audio_devices/native/juce_HighPerformanceAudioHelpers_android.h View File

@@ -20,9 +20,6 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
//============================================================================== //==============================================================================
/** /**
Some shared helpers methods for using the high-performance audio paths on Some shared helpers methods for using the high-performance audio paths on
@@ -30,7 +27,7 @@ namespace juce
@tags{Audio} @tags{Audio}
*/ */
namespace AndroidHighPerformanceAudioHelpers
namespace juce::AndroidHighPerformanceAudioHelpers
{ {
//============================================================================== //==============================================================================
static double getNativeSampleRate() static double getNativeSampleRate()
@@ -126,6 +123,5 @@ namespace AndroidHighPerformanceAudioHelpers
auto defaultBuffersToEnqueue = buffersToQueueForBufferDuration (nativeBufferSize, defaultBufferLength, currentSampleRate); auto defaultBuffersToEnqueue = buffersToQueueForBufferDuration (nativeBufferSize, defaultBufferLength, currentSampleRate);
return defaultBuffersToEnqueue * nativeBufferSize; return defaultBuffersToEnqueue * nativeBufferSize;
} }
}
} // namespace juce
} // namespace juce::AndroidHighPerformanceAudioHelpers

+ 1
- 1
modules/juce_audio_devices/native/juce_WASAPI_windows.cpp View File

@@ -2024,7 +2024,7 @@ struct MMDeviceMasterVolume
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MMDeviceMasterVolume) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MMDeviceMasterVolume)
}; };
}
} // namespace WasapiClasses
//============================================================================== //==============================================================================
#define JUCE_SYSTEMAUDIOVOL_IMPLEMENTED 1 #define JUCE_SYSTEMAUDIOVOL_IMPLEMENTED 1


+ 2
- 5
modules/juce_audio_plugin_client/juce_audio_plugin_client_LV2.cpp View File

@@ -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." #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 #endif
namespace juce
{
namespace lv2_client
namespace juce::lv2_client
{ {
constexpr bool startsWithValidScheme (const std::string_view str) 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; return &descriptor;
} }
}
}
} // namespace juce::lv2_client
#endif #endif

+ 2
- 5
modules/juce_audio_processors/format_types/juce_LV2Common.h View File

@@ -74,9 +74,7 @@ JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#include <map> #include <map>
#include <type_traits> #include <type_traits>
namespace juce
{
namespace lv2_shared
namespace juce::lv2_shared
{ {
class AtomForge class AtomForge
@@ -664,7 +662,6 @@ static inline String sanitiseStringAsTtlName (const String& input)
return String (CharPointer_UTF32 { sanitised.data() }, sanitised.size()); return String (CharPointer_UTF32 { sanitised.data() }, sanitised.size());
} }
}
}
} // namespace juce::lv2_shared
#endif #endif

+ 1
- 1
modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp View File

@@ -5175,7 +5175,7 @@ private:
JUCE_LEAK_DETECTOR (LV2AudioPluginInstance) JUCE_LEAK_DETECTOR (LV2AudioPluginInstance)
}; };
} // namespace lv2
} // namespace lv2_host
//============================================================================== //==============================================================================
class LV2PluginFormat::Pimpl class LV2PluginFormat::Pimpl


+ 2
- 5
modules/juce_audio_processors/format_types/juce_LV2Resources.h View File

@@ -33,9 +33,7 @@
#include <vector> #include <vector>
namespace juce
{
namespace lv2
namespace juce::lv2
{ {
struct BundleResource struct BundleResource
@@ -52,8 +50,7 @@ struct Bundle
static std::vector<Bundle> getAllBundles(); static std::vector<Bundle> getAllBundles();
}; };
}
}
} // namespace juce::lv2
std::vector<juce::lv2::Bundle> juce::lv2::Bundle::getAllBundles() std::vector<juce::lv2::Bundle> juce::lv2::Bundle::getAllBundles()
{ {


+ 3
- 6
modules/juce_audio_processors/utilities/juce_ExtensionsVisitor.h View File

@@ -26,13 +26,10 @@
#ifndef DOXYGEN #ifndef DOXYGEN
// Forward declarations to avoid leaking implementation details. // Forward declarations to avoid leaking implementation details.
namespace Steinberg
namespace Steinberg::Vst
{ {
namespace Vst
{
class IComponent;
}
} // namespace Steinberg
class IComponent;
} // namespace Steinberg::Vst
#endif #endif


+ 1
- 1
modules/juce_core/containers/juce_FixedSizeFunction_test.cpp View File

@@ -360,5 +360,5 @@ public:
FixedSizeFunctionTest fixedSizedFunctionTest; FixedSizeFunctionTest fixedSizedFunctionTest;
} }
}
} // namespace juce
#undef JUCE_FAIL_ON_ALLOCATION_IN_SCOPE #undef JUCE_FAIL_ON_ALLOCATION_IN_SCOPE

+ 2
- 5
modules/juce_core/unit_tests/juce_UnitTestCategories.h View File

@@ -20,11 +20,9 @@
============================================================================== ==============================================================================
*/ */
namespace juce
namespace juce::UnitTestCategories
{ {
namespace UnitTestCategories
{
static const String analytics { "Analytics" }; static const String analytics { "Analytics" };
static const String audio { "Audio" }; static const String audio { "Audio" };
static const String audioProcessorParameters { "AudioProcessorParameters" }; static const String audioProcessorParameters { "AudioProcessorParameters" };
@@ -50,6 +48,5 @@ namespace UnitTestCategories
static const String time { "Time" }; static const String time { "Time" };
static const String values { "Values" }; static const String values { "Values" };
static const String xml { "XML" }; static const String xml { "XML" };
}
} // namespace juce
} // namespace juce::UnitTestCategories

+ 2
- 5
modules/juce_dsp/containers/juce_AudioBlock.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
#ifndef DOXYGEN #ifndef DOXYGEN
@@ -891,5 +889,4 @@ private:
friend class AudioBlock; friend class AudioBlock;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/containers/juce_AudioBlock_test.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
#if JUCE_USE_SIMD #if JUCE_USE_SIMD
@@ -496,5 +494,4 @@ static AudioBlockUnitTests<SIMDRegister<float>> audioBlockSIMDFloatUnitTests;
static AudioBlockUnitTests<SIMDRegister<double>> audioBlockSIMDDoubleUnitTests; static AudioBlockUnitTests<SIMDRegister<double>> audioBlockSIMDDoubleUnitTests;
#endif #endif
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 9
modules/juce_dsp/containers/juce_SIMDRegister.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
#ifndef DOXYGEN #ifndef DOXYGEN
@@ -392,9 +390,4 @@ private:
} }
}; };
} // namespace dsp
} // namespace juce
#ifndef DOXYGEN
#include "juce_SIMDRegister_Impl.h"
#endif
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/containers/juce_SIMDRegister_test.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
namespace SIMDRegister_test_internal namespace SIMDRegister_test_internal
@@ -876,5 +874,4 @@ public:
static SIMDRegisterUnitTests SIMDRegisterUnitTests; static SIMDRegisterUnitTests SIMDRegisterUnitTests;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/filter_design/juce_FilterDesign.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
template <typename FloatType> template <typename FloatType>
@@ -697,5 +695,4 @@ typename FilterDesign<FloatType>::IIRPolyphaseAllpassStructure
template struct FilterDesign<float>; template struct FilterDesign<float>;
template struct FilterDesign<double>; template struct FilterDesign<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/filter_design/juce_FilterDesign.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -295,5 +293,4 @@ private:
FilterDesign() = delete; FilterDesign() = delete;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_Convolution.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
template <typename Element> template <typename Element>
@@ -1293,5 +1291,4 @@ int Convolution::getCurrentIRSize() const { return pimpl->getCurrentIRSize(); }
int Convolution::getLatency() const { return pimpl->getLatency(); } int Convolution::getLatency() const { return pimpl->getLatency(); }
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_Convolution.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -306,5 +304,4 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Convolution) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Convolution)
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_Convolution_test.cpp View File

@@ -29,9 +29,7 @@
#define JUCE_FAIL_ON_ALLOCATION_IN_SCOPE #define JUCE_FAIL_ON_ALLOCATION_IN_SCOPE
#endif #endif
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
namespace namespace
{ {
@@ -575,7 +573,6 @@ public:
ConvolutionTest convolutionUnitTest; ConvolutionTest convolutionUnitTest;
} }
}
}
} // namespace juce::dsp
#undef JUCE_FAIL_ON_ALLOCATION_IN_SCOPE #undef JUCE_FAIL_ON_ALLOCATION_IN_SCOPE

+ 2
- 5
modules/juce_dsp/frequency/juce_FFT.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
struct FFT::Instance 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)); zeromem (inputOutputData + limit, static_cast<size_t> (size * 2 - limit) * sizeof (float));
} }
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_FFT.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -128,5 +126,4 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FFT) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (FFT)
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_FFT_test.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
struct FFTUnitTest : public UnitTest struct FFTUnitTest : public UnitTest
@@ -214,5 +212,4 @@ struct FFTUnitTest : public UnitTest
static FFTUnitTest fftUnitTest; static FFTUnitTest fftUnitTest;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_Windowing.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
template <typename FloatType> template <typename FloatType>
@@ -192,5 +190,4 @@ const char* WindowingFunction<FloatType>::getWindowingMethodName (WindowingMetho
template class WindowingFunction<float>; template class WindowingFunction<float>;
template class WindowingFunction<double>; template class WindowingFunction<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/frequency/juce_Windowing.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -107,5 +105,4 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WindowingFunction) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (WindowingFunction)
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 0
- 1
modules/juce_dsp/juce_dsp.cpp View File

@@ -56,7 +56,6 @@
#include "processors/juce_FIRFilter.cpp" #include "processors/juce_FIRFilter.cpp"
#include "processors/juce_IIRFilter.cpp" #include "processors/juce_IIRFilter.cpp"
#include "processors/juce_IIRFilter_Impl.h"
#include "processors/juce_FirstOrderTPTFilter.cpp" #include "processors/juce_FirstOrderTPTFilter.cpp"
#include "processors/juce_Panner.cpp" #include "processors/juce_Panner.cpp"
#include "processors/juce_Oversampling.cpp" #include "processors/juce_Oversampling.cpp"


+ 30
- 30
modules/juce_dsp/juce_dsp.h View File

@@ -188,37 +188,36 @@
#undef Factor #undef Factor
#undef check #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>;
//==============================================================================
namespace util
{
/** Use this function to prevent denormals on intel CPUs.
This function will work with both primitives and simple containers.
*/
#if JUCE_DSP_ENABLE_SNAP_TO_ZERO
inline void snapToZero (float& x) noexcept { JUCE_SNAP_TO_ZERO (x); }
#ifndef DOXYGEN
inline void snapToZero (double& x) noexcept { JUCE_SNAP_TO_ZERO (x); }
inline void snapToZero (long double& x) noexcept { JUCE_SNAP_TO_ZERO (x); }
#endif
#else
inline void snapToZero ([[maybe_unused]] float& x) noexcept {}
#ifndef DOXYGEN
inline void snapToZero ([[maybe_unused]] double& x) noexcept {}
inline void snapToZero ([[maybe_unused]] long double& x) noexcept {}
#endif
#endif
}
}
template <typename Type>
using Complex = std::complex<Type>;
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.
*/
#if JUCE_DSP_ENABLE_SNAP_TO_ZERO
inline void snapToZero (float& x) noexcept { JUCE_SNAP_TO_ZERO (x); }
#ifndef DOXYGEN
inline void snapToZero (double& x) noexcept { JUCE_SNAP_TO_ZERO (x); }
inline void snapToZero (long double& x) noexcept { JUCE_SNAP_TO_ZERO (x); }
#endif
#else
inline void snapToZero ([[maybe_unused]] float& x) noexcept {}
#ifndef DOXYGEN
inline void snapToZero ([[maybe_unused]] double& x) noexcept {}
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_ProcessorChain.h"
#include "processors/juce_ProcessorDuplicator.h" #include "processors/juce_ProcessorDuplicator.h"
#include "processors/juce_IIRFilter.h" #include "processors/juce_IIRFilter.h"
#include "processors/juce_IIRFilter_Impl.h"
#include "processors/juce_FIRFilter.h" #include "processors/juce_FIRFilter.h"
#include "processors/juce_StateVariableFilter.h" #include "processors/juce_StateVariableFilter.h"
#include "processors/juce_FirstOrderTPTFilter.h" #include "processors/juce_FirstOrderTPTFilter.h"


+ 2
- 5
modules/juce_dsp/maths/juce_FastMathApproximations.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -260,5 +258,4 @@ struct FastMathApproximations
} }
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_LogRampedValue.h View File

@@ -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; FloatType temp = 0, source = 0, r = 0, d = 1;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_LogRampedValue_test.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
static CommonSmoothedValueTests <LogRampedValue <float>> commonLogRampedValueTests; static CommonSmoothedValueTests <LogRampedValue <float>> commonLogRampedValueTests;
@@ -92,5 +90,4 @@ public:
static LogRampedValueTests LogRampedValueTests; static LogRampedValueTests LogRampedValueTests;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_LookupTable.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
template <typename FloatType> template <typename FloatType>
@@ -152,5 +150,4 @@ template class LookupTable<double>;
template class LookupTableTransform<float>; template class LookupTableTransform<float>;
template class LookupTableTransform<double>; template class LookupTableTransform<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_LookupTable.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -326,5 +324,4 @@ private:
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookupTableTransform) JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (LookupTableTransform)
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_Matrix.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
template <typename ElementType> template <typename ElementType>
@@ -313,5 +311,4 @@ String Matrix<ElementType>::toString() const
template class Matrix<float>; template class Matrix<float>;
template class Matrix<double>; template class Matrix<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_Matrix.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -250,5 +248,4 @@ private:
JUCE_LEAK_DETECTOR (Matrix) JUCE_LEAK_DETECTOR (Matrix)
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_Matrix_test.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
struct LinearAlgebraUnitTest : public UnitTest struct LinearAlgebraUnitTest : public UnitTest
@@ -169,5 +167,4 @@ struct LinearAlgebraUnitTest : public UnitTest
static LinearAlgebraUnitTest linearAlgebraUnitTest; static LinearAlgebraUnitTest linearAlgebraUnitTest;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_Phase.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -63,5 +61,4 @@ struct Phase
Type phase = 0; Type phase = 0;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_Polynomial.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** /**
@@ -164,5 +162,4 @@ private:
JUCE_LEAK_DETECTOR (Polynomial) JUCE_LEAK_DETECTOR (Polynomial)
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/maths/juce_SpecialFunctions.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
double SpecialFunctions::besselI0 (double x) noexcept 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); return 2.0 / MathConstants<double>::pi * std::asin (last);
} }
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 6
modules/juce_dsp/maths/juce_SpecialFunctions.h View File

@@ -23,11 +23,8 @@
============================================================================== ==============================================================================
*/ */
namespace juce
namespace juce::dsp
{ {
namespace dsp
{
/** /**
Contains miscellaneous filter design and windowing functions. Contains miscellaneous filter design and windowing functions.
@@ -63,5 +60,4 @@ struct SpecialFunctions
static Complex<double> asne (Complex<double> w, double k) noexcept; static Complex<double> asne (Complex<double> w, double k) noexcept;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 19
- 22
modules/juce_dsp/native/juce_SIMDNativeOps_avx.cpp View File

@@ -23,36 +23,33 @@
============================================================================== ==============================================================================
*/ */
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 };
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 };
DEFINE_AVX_SIMD_CONST (int64_t, double, kAllBitsSet) = { -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (int64_t, double, kEvenHighBit) = { static_cast<int64_t> (0x8000000000000000), 0, static_cast<int64_t> (0x8000000000000000), 0 };
DEFINE_AVX_SIMD_CONST (double, double, kOne) = { 1.0, 1.0, 1.0, 1.0 };
DEFINE_AVX_SIMD_CONST (int64_t, double, kAllBitsSet) = { -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (int64_t, double, kEvenHighBit) = { static_cast<int64_t> (0x8000000000000000), 0, static_cast<int64_t> (0x8000000000000000), 0 };
DEFINE_AVX_SIMD_CONST (double, double, kOne) = { 1.0, 1.0, 1.0, 1.0 };
DEFINE_AVX_SIMD_CONST (int8_t, int8_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (int8_t, int8_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (uint8_t, uint8_t, kAllBitsSet) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
DEFINE_AVX_SIMD_CONST (uint8_t, uint8_t, kHighBit) = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
DEFINE_AVX_SIMD_CONST (uint8_t, uint8_t, kAllBitsSet) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
DEFINE_AVX_SIMD_CONST (uint8_t, uint8_t, kHighBit) = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
DEFINE_AVX_SIMD_CONST (int16_t, int16_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (int16_t, int16_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (uint16_t, uint16_t, kAllBitsSet) = { 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff };
DEFINE_AVX_SIMD_CONST (uint16_t, uint16_t, kHighBit) = { 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000 };
DEFINE_AVX_SIMD_CONST (uint16_t, uint16_t, kAllBitsSet) = { 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff };
DEFINE_AVX_SIMD_CONST (uint16_t, uint16_t, kHighBit) = { 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000 };
DEFINE_AVX_SIMD_CONST (int32_t, int32_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (int32_t, int32_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_AVX_SIMD_CONST (uint32_t, uint32_t, kAllBitsSet) = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff };
DEFINE_AVX_SIMD_CONST (uint32_t, uint32_t, kHighBit) = { 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000 };
DEFINE_AVX_SIMD_CONST (uint32_t, uint32_t, kAllBitsSet) = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff };
DEFINE_AVX_SIMD_CONST (uint32_t, uint32_t, kHighBit) = { 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000, 0x80000000 };
DEFINE_AVX_SIMD_CONST (int64_t, int64_t, kAllBitsSet) = { -1LL, -1LL, -1LL, -1LL };
DEFINE_AVX_SIMD_CONST (int64_t, int64_t, kAllBitsSet) = { -1LL, -1LL, -1LL, -1LL };
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 };
}
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 };
} }

+ 2
- 5
modules/juce_dsp/native/juce_SIMDNativeOps_avx.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
#ifndef DOXYGEN #ifndef DOXYGEN
@@ -657,5 +655,4 @@ struct SIMDNativeOps<uint64_t>
JUCE_END_IGNORE_WARNINGS_GCC_LIKE JUCE_END_IGNORE_WARNINGS_GCC_LIKE
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/native/juce_SIMDNativeOps_fallback.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
/** A template specialisation to find corresponding mask type for primitives. */ /** A template specialisation to find corresponding mask type for primitives. */
@@ -263,5 +261,4 @@ struct SIMDFallbackOps
} }
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 18
- 21
modules/juce_dsp/native/juce_SIMDNativeOps_neon.cpp View File

@@ -23,26 +23,23 @@
============================================================================== ==============================================================================
*/ */
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 };
#if JUCE_64BIT
DEFINE_NEON_SIMD_CONST (int64_t, double, kAllBitsSet) = { -1, -1 };
DEFINE_NEON_SIMD_CONST (double, double, kOne) = { 1.0, 1.0 };
#endif
DEFINE_NEON_SIMD_CONST (int8_t, int8_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_NEON_SIMD_CONST (uint8_t, uint8_t, kAllBitsSet) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
DEFINE_NEON_SIMD_CONST (int16_t, int16_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_NEON_SIMD_CONST (uint16_t, uint16_t, kAllBitsSet) = { 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff };
DEFINE_NEON_SIMD_CONST (int32_t, int32_t, kAllBitsSet) = { -1, -1, -1, -1 };
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 };
}
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 };
#if JUCE_64BIT
DEFINE_NEON_SIMD_CONST (int64_t, double, kAllBitsSet) = { -1, -1 };
DEFINE_NEON_SIMD_CONST (double, double, kOne) = { 1.0, 1.0 };
#endif
DEFINE_NEON_SIMD_CONST (int8_t, int8_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_NEON_SIMD_CONST (uint8_t, uint8_t, kAllBitsSet) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
DEFINE_NEON_SIMD_CONST (int16_t, int16_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_NEON_SIMD_CONST (uint16_t, uint16_t, kAllBitsSet) = { 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff };
DEFINE_NEON_SIMD_CONST (int32_t, int32_t, kAllBitsSet) = { -1, -1, -1, -1 };
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 };
} }

+ 2
- 5
modules/juce_dsp/native/juce_SIMDNativeOps_neon.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
#ifndef DOXYGEN #ifndef DOXYGEN
@@ -538,5 +536,4 @@ struct SIMDNativeOps<double>
JUCE_END_IGNORE_WARNINGS_GCC_LIKE JUCE_END_IGNORE_WARNINGS_GCC_LIKE
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 19
- 22
modules/juce_dsp/native/juce_SIMDNativeOps_sse.cpp View File

@@ -23,36 +23,33 @@
============================================================================== ==============================================================================
*/ */
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 };
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 };
DEFINE_SSE_SIMD_CONST (int64_t, double, kAllBitsSet) = { -1LL, -1LL };
DEFINE_SSE_SIMD_CONST (int64_t, double, kEvenHighBit) = { static_cast<int64_t> (0x8000000000000000), 0 };
DEFINE_SSE_SIMD_CONST (double, double, kOne) = { 1.0, 1.0 };
DEFINE_SSE_SIMD_CONST (int64_t, double, kAllBitsSet) = { -1LL, -1LL };
DEFINE_SSE_SIMD_CONST (int64_t, double, kEvenHighBit) = { static_cast<int64_t> (0x8000000000000000), 0 };
DEFINE_SSE_SIMD_CONST (double, double, kOne) = { 1.0, 1.0 };
DEFINE_SSE_SIMD_CONST (int8_t, int8_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_SSE_SIMD_CONST (int8_t, int8_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_SSE_SIMD_CONST (uint8_t, uint8_t, kAllBitsSet) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
DEFINE_SSE_SIMD_CONST (uint8_t, uint8_t, kHighBit) = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
DEFINE_SSE_SIMD_CONST (uint8_t, uint8_t, kAllBitsSet) = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
DEFINE_SSE_SIMD_CONST (uint8_t, uint8_t, kHighBit) = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 };
DEFINE_SSE_SIMD_CONST (int16_t, int16_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_SSE_SIMD_CONST (int16_t, int16_t, kAllBitsSet) = { -1, -1, -1, -1, -1, -1, -1, -1 };
DEFINE_SSE_SIMD_CONST (uint16_t, uint16_t, kAllBitsSet) = { 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff };
DEFINE_SSE_SIMD_CONST (uint16_t, uint16_t, kHighBit) = { 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000 };
DEFINE_SSE_SIMD_CONST (uint16_t, uint16_t, kAllBitsSet) = { 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff };
DEFINE_SSE_SIMD_CONST (uint16_t, uint16_t, kHighBit) = { 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000, 0x8000 };
DEFINE_SSE_SIMD_CONST (int32_t, int32_t, kAllBitsSet) = { -1, -1, -1, -1 };
DEFINE_SSE_SIMD_CONST (int32_t, int32_t, kAllBitsSet) = { -1, -1, -1, -1 };
DEFINE_SSE_SIMD_CONST (uint32_t, uint32_t, kAllBitsSet) = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff };
DEFINE_SSE_SIMD_CONST (uint32_t, uint32_t, kHighBit) = { 0x80000000, 0x80000000, 0x80000000, 0x80000000 };
DEFINE_SSE_SIMD_CONST (uint32_t, uint32_t, kAllBitsSet) = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff };
DEFINE_SSE_SIMD_CONST (uint32_t, uint32_t, kHighBit) = { 0x80000000, 0x80000000, 0x80000000, 0x80000000 };
DEFINE_SSE_SIMD_CONST (int64_t, int64_t, kAllBitsSet) = { -1, -1 };
DEFINE_SSE_SIMD_CONST (int64_t, int64_t, kAllBitsSet) = { -1, -1 };
DEFINE_SSE_SIMD_CONST (uint64_t, uint64_t, kAllBitsSet) = { 0xffffffffffffffff, 0xffffffffffffffff };
DEFINE_SSE_SIMD_CONST (uint64_t, uint64_t, kHighBit) = { 0x8000000000000000, 0x8000000000000000 };
}
DEFINE_SSE_SIMD_CONST (uint64_t, uint64_t, kAllBitsSet) = { 0xffffffffffffffff, 0xffffffffffffffff };
DEFINE_SSE_SIMD_CONST (uint64_t, uint64_t, kHighBit) = { 0x8000000000000000, 0x8000000000000000 };
} }

+ 2
- 5
modules/juce_dsp/native/juce_SIMDNativeOps_sse.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
#ifndef DOXYGEN #ifndef DOXYGEN
@@ -727,5 +725,4 @@ struct SIMDNativeOps<uint64_t>
JUCE_END_IGNORE_WARNINGS_GCC_LIKE JUCE_END_IGNORE_WARNINGS_GCC_LIKE
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_BallisticsFilter.cpp View File

@@ -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<float>;
template class BallisticsFilter<double>; template class BallisticsFilter<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_BallisticsFilter.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
enum class BallisticsFilterLevelCalculationType enum class BallisticsFilterLevelCalculationType
@@ -146,5 +144,4 @@ private:
LevelCalculationType levelType = LevelCalculationType::peak; LevelCalculationType levelType = LevelCalculationType::peak;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_DelayLine.cpp View File

@@ -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<float, DelayLineInterpolationTypes::Thiran>;
template class DelayLine<double, DelayLineInterpolationTypes::Thiran>; template class DelayLine<double, DelayLineInterpolationTypes::Thiran>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_DelayLine.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
//============================================================================== //==============================================================================
@@ -313,5 +311,4 @@ private:
SampleType alpha = 0.0; SampleType alpha = 0.0;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_DryWetMixer.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
//============================================================================== //==============================================================================
@@ -367,5 +365,4 @@ static const DryWetMixerTests dryWetMixerTests;
#endif #endif
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_DryWetMixer.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
enum class DryWetMixingRule enum class DryWetMixingRule
@@ -116,5 +114,4 @@ private:
int maximumWetLatencyInSamples = 0; int maximumWetLatencyInSamples = 0;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_FIRFilter.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
template <typename NumericType> template <typename NumericType>
@@ -157,5 +155,4 @@ void FIR::Coefficients<NumericType>::Coefficients::normalise() noexcept
template struct FIR::Coefficients<float>; template struct FIR::Coefficients<float>;
template struct FIR::Coefficients<double>; template struct FIR::Coefficients<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 9
modules/juce_dsp/processors/juce_FIRFilter.h View File

@@ -23,15 +23,10 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
{
/** /**
Classes for FIR filter processing. Classes for FIR filter processing.
*/ */
namespace FIR
namespace juce::dsp::FIR
{ {
template <typename NumericType> template <typename NumericType>
struct Coefficients; struct Coefficients;
@@ -279,7 +274,5 @@ namespace FIR
*/ */
Array<NumericType> coefficients; Array<NumericType> coefficients;
}; };
}
} // namespace dsp
} // namespace juce
} // namespace juce::dsp::FIR

+ 2
- 5
modules/juce_dsp/processors/juce_FIRFilter_test.cpp View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
class FIRFilterTest : public UnitTest class FIRFilterTest : public UnitTest
@@ -218,5 +216,4 @@ public:
static FIRFilterTest firFilterUnitTest; static FIRFilterTest firFilterUnitTest;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_FirstOrderTPTFilter.cpp View File

@@ -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<float>;
template class FirstOrderTPTFilter<double>; template class FirstOrderTPTFilter<double>;
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 5
modules/juce_dsp/processors/juce_FirstOrderTPTFilter.h View File

@@ -23,9 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
namespace juce::dsp
{ {
enum class FirstOrderTPTFilterType enum class FirstOrderTPTFilterType
@@ -147,5 +145,4 @@ private:
SampleType cutoffFrequency = 1000.0; SampleType cutoffFrequency = 1000.0;
}; };
} // namespace dsp
} // namespace juce
} // namespace juce::dsp

+ 2
- 8
modules/juce_dsp/processors/juce_IIRFilter.cpp View File

@@ -23,11 +23,7 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
{
namespace IIR
namespace juce::dsp::IIR
{ {
constexpr auto minimumDecibels = -300.0; constexpr auto minimumDecibels = -300.0;
@@ -574,6 +570,4 @@ void Coefficients<NumericType>::getPhaseForFrequencyArray (double* frequencies,
template struct Coefficients<float>; template struct Coefficients<float>;
template struct Coefficients<double>; template struct Coefficients<double>;
} // namespace IIR
} // namespace dsp
} // namespace juce
} // namespace juce::dsp::IIR

+ 2
- 11
modules/juce_dsp/processors/juce_IIRFilter.h View File

@@ -23,15 +23,10 @@
============================================================================== ==============================================================================
*/ */
namespace juce
{
namespace dsp
{
/** /**
Classes for IIR filter processing. Classes for IIR filter processing.
*/ */
namespace IIR
namespace juce::dsp::IIR
{ {
/** A set of coefficients for use in an Filter object. /** A set of coefficients for use in an Filter object.
@@ -396,8 +391,4 @@ namespace IIR
JUCE_LEAK_DETECTOR (Filter) 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 changed in this diff

Loading…
Cancel
Save